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

Getting logrotate to rename to YYYY-MM-DD



I'm trying to make a Debian system rotate its logfiles so that each
previous day's logs have YYYY-MM-DD appended to the name (just before
compression) and they then keep the same name until deleted.
As opposed to the standard Debian method, where logs get a single
number appended, which is then changed every day for every log file.

It looks as though the logrotate and savelog mechanisms in Debian have
their own very entrenched ideas about what names to give to rotated
log files, and any attempt to change them will make the whole log
rotation system break. I'm ideally looking for a nice simple
user-configurable setting that enables YYYY-MM-DD log files, but am of
course willing to do a bit more work than that if required.

I have checked the list archives, but found nothing that helps me. Am
I missing something really obvious? Surely with this being a standard
log rotation naming scheme on SuSE for so many years, someone else
would have needed this in Debian by now?


Reply to: