Red Hat Bugzilla – Bug 593160
logrotate uses wrong file name format, logs are lost
Last modified: 2010-05-18 08:22:47 EDT
Created attachment 414706 [details]
output of logrotate
Description of problem:
Logrotate uses wrong logname format
Version-Release number of selected component (if applicable):
Steps to Reproduce:
He tries to rotate log.0,log.1,log.2,etc.
Old logs are lost
SHoud use log-yyyymmdd format
$ rpm -qf /etc/logrotate.d/httpd
=> reassigning to httpd
The "dateext" (yyyymmdd) suffix format is configured in the /etc/logrotate.conf file before the application specific configurations in /etc/logrotate.d directory are being processed. Therefore if the user runs 'logrotate -f /etc/logrotate.d/httpd' the system-wide settings are not read and the old log format is being used because it's the hard-coded default.
I wouldn't consider this to be a bug at all.
I agree with Tomas.