Hi Olly,

> From: Oliver Marshall [mailto:oliver.marsh...@g2support.com] 
> Sent: 28 September 2009 19:19
> To: users@httpd.apache.org
> Subject: [us...@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 generated
> 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 it?

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.

Regards,

Mick Sheppard

This is an email from the CPP Group Plc, Holgate Park, York, YO26 4GA; 
telephone +44 (0)1904 544500.
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 this
message in error, please notify the sender immediately by email, facsimile or 
telephone and either
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:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to