Solved

Apache Magically Stops Logging for no reason intermittently

Posted on 2004-10-07
13
234 Views
Last Modified: 2010-03-04
My system: win2k3 , apache 1.3, php4

i host several sites on this one machine.. i haven't had this problem for about 2 months.. and all of a sudden out of nowhere.. it logs about 1% of the site hits.. .. i nomrally get about 90k hits everyday.. all of a sudden.. a week ago i get 6k hits.. for the life of my website.. i never get  any less than 20k hits.. and the site was promoted heavily recently too.. today.. i got 5k hits... i searched on google.. and some ppl experienced the same problems with apache.. any ideas anyone? any help is appreciated!! we're in dire need of an answer asap
0
Comment
Question by:andreni78
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
13 Comments
 
LVL 15

Expert Comment

by:periwinkle
ID: 12257813
Do you use a log rotation program of some sort?
0
 

Author Comment

by:andreni78
ID: 12261739
i  use the log rotation that comes w/ apache.. also.. only one of my site magically stops logging.. the other sites are logging just fine..
0
 
LVL 15

Expert Comment

by:periwinkle
ID: 12261888
How do you split the logs for all the sites -- is it possible that the log rotation is interfering with your stats?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:andreni78
ID: 12263277
nope.. it can't be.. it runs fine for one month.. i haven't changed anything.. all of a sudden it logs like about 1-4% of the hits.. it still logs.. but logs very little activity on one of my website.. all my other websites logs fine on the same server... i don't know what the deal is..

this is my log command in httpd.conf:
<VirtualHost 111.111.111.111:80>
    ServerAdmin me@mysite.com
    DocumentRoot d:/web/mysite
    ServerName mysite.com
    ServerAlias www www.mysite.com
    ErrorLog "|d:/web/apache/logs/mysite/mysite-error-log"
    CustomLog "|d:/web/apache/bin/rotatelogs d:/web/apache/logs/mysite/mysite-access-log 86400" combined
</VirtualHost>

it's been working fine..................... i'm lost on this one...
0
 
LVL 15

Expert Comment

by:periwinkle
ID: 12263982
Why are you piping the ErrorLog?  You're not using the rotate logs script in that one.
0
 

Author Comment

by:andreni78
ID: 12264936
I have no idea.. I learned all this on my own with little online help... i'll get rid of that line.. i doubt that's the cause for the intermittent log stoppages... any ideas?
0
 
LVL 15

Accepted Solution

by:
periwinkle earned 500 total points
ID: 12265793
I honestly have no idea other than the log rotation - this isn't a normal behavior of Apache, which I've been using for nearly 10 years.
0
 

Author Comment

by:andreni78
ID: 12267643
very strange.. i might as well switch to IIS... all my scripts should work on there like apache... for me, it's a bit difficult to add virtual domains on apache 2.0... i use the exact same lines as shown above but apache 2.0 wouldn't start if i add them. that's why i'm using apache 1.3 now.. any warning/heeds if i migrate over IIS? i seriously have a lot to risk when i start moving over to IIS.. lots of scripts to configure/reconfigure..
0
 
LVL 15

Expert Comment

by:periwinkle
ID: 12276994
my personal opinion is that unless you know for certain what the problem is here for Apache, you can't be guaranteed that it won't happen again on IIS.  I have run Apache (admittedly, under Linux) for the past 11 years, and haven't seen your issue before.  I do not, however, use the rotatelogs script;  instead, I use the logrotate that is integral to the Linux system on some systems, and a custom written script on one other.

I would seriously suspect that there is something wrong with the configuration for the site that stops logging.

What error is apache giving you for not starting?
0
 

Author Comment

by:andreni78
ID: 12344091
it starts out fine now.. so far it's running stable now.. been stable for a while now.. it just has its hiccups once in a while.. i guess the rotatlog app is a bit unreliable under NT
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
apache and php 3 162
Configure a Local PHP Interpreter for Phpstorm 2 516
NGINX/Apache redirect on 403 and 404 5 194
How code a 301 redirect for folder files -> 1 file 2 80
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question