On 2016-03-04 18:35, Per Jessen wrote:
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.
Ah. Only those younger than a year.
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?
It will keep a maximum of 10 files, and they will not cover more than 30 days - whichever condition hits first. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)