How can I configure logrotate so that it emails me the files 'after' they have been compressed? Right now I am emailed the uncompressed files which can results in huge attachments.
migrated from stackoverflow.com Oct 4 '09 at 14:09
This question came from our site for professional and enthusiast programmers.
logrotate (3.7.8-1) in Debian has a patch "sharedscripts-519432.patch" which will give the rotated log as an argument to postrotate scripts. It could be used to mail the compressed file.