Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 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.

share|improve this answer

Your Answer


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.