On 2016-03-04 08:54, Per Jessen wrote:
Carlos E. R. wrote:
No, not true. Logrotate compresses the current log, and limits the compressed logs either by date or by number of files, removing the rest.
Uh, for e.g. /var/log/messages, the default config in logrotate does indeed not remove very much:
compress dateext maxage 365 rotate 99 missingok notifempty size +4096k
Probably a fairly sound default setting.
They are removed after a year, if I read it correctly. rotate 99 means a maximum of 99 rotated files. For instance, I have this: /var/log/news/news.debug { compress dateext maxage 30 rotate 10 ... which rotates quickly the news.debug file. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)