Solved

Apache Magically Stops Logging for no reason intermittently

Posted on 2004-10-07
13
239 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
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 

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

Independent Software Vendors: 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!

Question has a verified solution.

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

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

626 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