Carlos E. R. wrote:
On 04/03/2016 15:36, Per Jessen wrote:
Carlos E. R. wrote:
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.
Well, yes, it is the same, ¿no?
I dunno. If one new rotated file of 4Mb is created once a week, you only get 52 in year1. In year2 you get another 52, so 104 - I don't know if 99 are kept or only those younger than 365 days.
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) ?
30 days and 10 files. Size applies to the active file.
Size is the criteria for rotation - unless your news.debug file satisfies your criteria, nothing is rotated. If you have "size +100G" for instance. On production machines, I always use: daily rotate 30 To me rotate and maxage do the same thing, limit the number of rotated logs, just with different criteria. I can't quite work out how they work together. How do you believe your "maxage 30 and rotate 10" is supposed to work? -- Per Jessen, Zürich (4.1°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org