Carlos E. R. wrote:
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.
I'm not sure, according to the man page "rotate count: Log files are rotated <count> times before being removed". I think it means nothing is deleted until you have 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.
Well, what's the limit - size or time? (daily/weekly or size +xxx) ? -- Per Jessen, Zürich (5.1°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org