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

Re: Put date on log file names?



vr wrote:

Due to message volume, I'm considering rotating my mail logs daily at my local time "midnight" and retaining about 30 days worth of files on disk. I'd like to have the date in the file names so visually I'll know what span is in each file.

Can this be done? (put dates into the file name)


You need the dateext option in the logrotate config. That'll mean your archives have the date extension, and the current one is just whatever it's normally called, which I guess should be OK for you?

Should this be done? (put the date into the file name)


Never caused me any problems ;)

--
Chris Jackson
Shadowcat Systems Ltd.


Reply to: