Hello All,

I have setup a new log and want to mail the log file daily at the end of the day. Logrotate has a mail and mailfirst option available, but it sends the content of the log file in mail but does not send the logfile as an attachment. Does logrotate behave like this or is there any other option which attaches the actual logfile?

Here are the contents of the file.

/etc/logrotate.d/script_mem
/opt/test_cron.log
{
daily
rotate 3
dateext
compress
mail ***@****.com
mailfirst
}

Thanks,
agarud