Red Hat Bugzilla – Bug 982635
Missing required "compress" option in httpd logrotate configuration file
Last modified: 2013-07-09 09:29:43 EDT
Description of problem:
/etc/logrotate.d/httpd contains "delaycompress" to postpone compression of the rotated logs but it is missing the "compress" option which is required when using "delaycompress" as "man logrotate.conf" states:
Postpone compression of the previous log file to the next rotation cycle. This only has effect when used in combination with compress. It can be used when some program cannot be told to close its logfile and thus might continue writing to the previous log file for some time.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. yum install httpd
2. service httpd start
3. # generate logs
4. logrotate --force /etc/logrotate.d/httpd
Rotated files are not compressed
Rotated files are compressed with a delay.
# grep compress /etc/logrotate.d/httpd
This is not a bug. If compress is enabled globally (administrator preference), delaycompress must also be used for httpd log files. If compress is not enabled globally, it has no effect.