Solved

Apache Magically Stops Logging for no reason intermittently

Posted on 2004-10-07
13
231 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

786 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