Solved

Apache Magically Stops Logging for no reason intermittently

Posted on 2004-10-07
13
228 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
 

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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now