Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

migrated from stackoverflow.com Oct 4 '09 at 14:09

This question came from our site for professional and enthusiast programmers.

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.