[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [nylug-talk] Mailing compressed log files with logrotate



Well... I broke down and dug through logrotates code, and changed it 
to uuencode the file and email it to me as opposed to gunzip'ing the 
file and emailing pieces, added a little "sed" to make the 
attachment's filename nice, and voila... it emails gzip'ed log files.

If anyone is interested in this, let me know and I'll send it your way.

Andrew

At 1:23 PM -0400 8/1/00, Andrew Yochum wrote:
>I'm attempting to get logrotate to mail compressed log files, but it 
>seems to me that there is no option for this.  Logrotate emails the 
>rotated logs to me just fine, but if they are large it chops the 
>file up into multiple emails.
>
>I'd like to get logrotate to not split the file up and possibly MIME 
>attach a gzip'ed file instead of mailing the log in the body of the 
>message.
>
>Anyone have any suggestions?  Is there something in logrotate that 
>I'm missing?
>
>--
>Andrew