logrotate not rotating

My httpd logs are not rotating, even though logrotate is configured and running. The really weird thing is that if I run this manually (the -f is "force" -- it causes logrotate to do its thing even if the appointed time or size for a given log has not been reached)
:

/usr/sbin/logrotate -f -d /etc/logrotate.d/apache-conf

I get a seemingly positive result:

rotating log /var/log/httpd/access_log
renaming /var/log/httpd/access_log.6 to /var/log/httpd/access_log.6 (rotatecount 5, logstart 1, i 6),
renaming /var/log/httpd/access_log.5 to /var/log/httpd/access_log.6 (rotatecount 5, logstart 1, i 5),
renaming /var/log/httpd/access_log.4 to /var/log/httpd/access_log.5 (rotatecount 5, logstart 1, i 4),
renaming /var/log/httpd/access_log.3 to /var/log/httpd/access_log.4 (rotatecount 5, logstart 1, i 3),
renaming /var/log/httpd/access_log.2 to /var/log/httpd/access_log.3 (rotatecount 5, logstart 1, i 2),
renaming /var/log/httpd/access_log.1 to /var/log/httpd/access_log.2 (rotatecount 5, logstart 1, i 1),
renaming /var/log/httpd/access_log.0 to /var/log/httpd/access_log.1 (rotatecount 5, logstart 1, i 0),
running prerotate script
running script with arg /var/log/httpd/access_log: "
ADVXctl closelogs
"
renaming /var/log/httpd/access_log to /var/log/httpd/access_log.1
running postrotate script
running script with arg /var/log/httpd/access_log: "
ADVXctl closelogs
"
removing old log /var/log/httpd/access_log.6


Seems like it worked, right? But when I check the log dir, everything is totally untouched. No logs have been rotated at all!

Here is the relevant block from /etc/logrotate.d/apache-conf:

/var/log/httpd/access_log /var/log/httpd/error_log /var/log/httpd/agent_log /var/log/httpd/referer_log /var/log/httpd/apache_runtime_status
/var/log/httpd/ssl_mutex /var/log/httpd/ssl_access_log /var/log/httpd/ssl_error_log /var/log/httpd/ssl_agent_log /var/log/httpd/ssl_request_log
/var/log/httpd/suexec_log
{
rotate 5
weekly
missingok
nocompress
prerotate
ADVXctl closelogs
endscript
postrotate
ADVXctl closelogs
endscript
}

Thanks for any suggestions.
Scot

 

 

 

 

Top