Red Hat Bugzilla – Bug 60341
Does not uncompress files before mailing as per man page
Last modified: 2007-04-18 12:40:37 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011226
Description of problem:
The man page implies that compressed logfiles will be mailed uncompressed. This
is not the case; if you turn on compression, then logrotate will not decompress
the log before mailing. This makes parsing the log file at your automated
log-collector darn tricky.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Set mail and compress directives in logrotate config file
Actual Results: The file will be sent in compressed form (if sendmail doesn't gag).
Expected Results: The file should be decompressed before being sent.
Excerpt from the man page:
rotated whenever is grows over 100k is size, and the old logs files
are mailed (uncompressed) to firstname.lastname@example.org after going through 5 rota-
tions, rather then being removed.
Ideally, the feature should be implemented as described. Failing that, we
should at least fix the man page to reflect reality.
From reading the logwatch code, it appears that it only uncompresses mailed logs
if you use the 'mailfirst' keyword. I'm going to assume that there are good
reasons for this, and leave it as-is.