Re: [exim] exim log rollover

Góra strony
Delete this message
Reply to this message
Autor: Kjetil Torgrim Homme
Data:  
Dla: Renaud Allard
CC: exim-users, jean-paul natola
Temat: Re: [exim] exim log rollover
On Thu, 2007-01-18 at 23:25 +0100, Renaud Allard wrote:
> The best way to roll out exim logs is [exicyclog]


I don't agree. I use

log_file_path = /var/log/exim/%slog.%D

which means I get one log file per day, e.g., "mainlog.20070119". to
clean up these, I run find from cron:

16 0 * * * find /var/log/exim/. \( -name "mainlog.*" -o -name
"rejectlog.*" \) -mtime +30 -exec rm {} \;

I don't bother to compress them, I prefer to set aside plenty of space
for logs, so I don't have to use zgrep.

the nice thing about leaving it to Exim, is that the log entries for the
first few seconds of the day never end up in the previous day's logs. I
guess such occurences are more obvious at busy sites.

--
Kjetil T.