Hi Mick, We are using logrotate to rotate the logs using the following conf file; ********************* /var/log/apache2/*.log { weekly missingok rotate 12 compress # delaycompress notifempty create 640 www-data www-data sharedscripts postrotate if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then /etc/init.d/apache2 reload > /dev/null fi endscript } ********************** The log that was just rolled doesn't continue to grow. It's gzip'd and then sits there. A new log is created but then doesnt grow. The listing shows this; -rw-r----- 1 www-data www-data 0 2009-09-27 06:38 access.log -rw-r----- 1 www-data www-data 1119157 2009-09-27 00:19 access.log.1.gz -rw-r----- 1 www-data www-data 167234 2009-09-22 05:25 access.log.2.gz Any ideas ? Olly -- G2 Support Network Support : Online Backups : Server Management Web: www.g2support.com Twitter: g2support Newsletter: www.g2support.com/newsletter -----Original Message----- From: Mick Sheppard [mailto:Mick.Sheppard@xxxxxxxxx] Sent: 29 September 2009 09:05 To: users@xxxxxxxxxxxxxxxx Subject: RE: 0 byte logs Hi Olly, > From: Oliver Marshall [mailto:Oliver.Marshall@xxxxxxxxxxxxx] > Sent: 28 September 2009 19:19 > To: users@xxxxxxxxxxxxxxxx > Subject: 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-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx --------------------------------------------------------------------- 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-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx