httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mick Sheppard" <>
Subject RE: [users@httpd] 0 byte logs
Date Tue, 29 Sep 2009 08:05:11 GMT
Hi Olly,

> From: Oliver Marshall [] 
> Sent: 28 September 2009 19:19
> To:
> Subject: [users@httpd] 0 byte logs
> Hi,
> We've seen a problem for a while on our ubuntu web server whereby apache starts generating
0 byte logs.
> This applies to the access logs for the individual sites.  
> The only solution we have found is a quick 'apache2ctl graceful' and the logs start being
> normally again...for a few days until the whole thing happens again. 

A couple of questions:

1) What are you using to rotate the apache log files?

2) When you rotate them does the first one rotated continue to grow, or are you compressing

The reason for the questions is that it sounds as if your rotation mechanism is moving the
old log files away and then creating a new, empty one. Unless you tell it Apache will continue
to write to the old log file as it will have it open. When you give the 'graceful' command
Apache restarts and re-opens the log file thus writing to the new logs.


Mick Sheppard

This is an email from the CPP Group Plc, Holgate Park, York, YO26 4GA; telephone +44 (0)1904
This message may contain information that is confidential. If you are not the intended recipient,
you may not peruse, use, disseminate, distribute or copy this message. If you have received
message in error, please notify the sender immediately by email, facsimile or telephone and
return or destroy the original message.

The CPP Group Plc accepts no responsibility for any changes made to this message after it
has been
sent by the original author.  This email has been scanned for all viruses by the MessageLabs

Email Security System.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message