Solved

Apache Magically Stops Logging for no reason intermittently

Posted on 2004-10-07
13
233 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
  • 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
Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

 

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

740 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