log files double rotate happening
Denis Beauchemin
Denis.Beauchemin at USherbrooke.ca
Mon Dec 1 13:38:28 GMT 2008
Lists a écrit :
> Hi all,
>
> I have set up in logrotate.conf the following (intent is to compress
> the maillog files weekly)
> what is happening is that i'm getting zip files created ie
> maillog.1.gz but also getting the maillog.0 maillog.1 files being
> created.
> It is making it quite difficult to find information in them later.
Kate,
Use the "dateext" directive (if your logrotate supports it):
dateext
Archive old versions of log files adding a daily
extension like YYYYM-
MDD instead of simply adding a number.
Denis
--
_
°v° Denis Beauchemin, analyste
/(_)\ Université de Sherbrooke, S.T.I.
^ ^ T: 819.821.8000x62252 F: 819.821.8045
More information about the MailScanner
mailing list