The documentation says roll_keep
defaults to 10 and roll_keep_for
defaults to 2160h
.
These both sets an upper limit, so how are disagreements resolved?
E.g. with default values, will I never see more than 10 log files, and never see log files older than 90 days? Or is it instead keep for at least 90 days and keep at least 10 log files?
In my case, I don’t really care about number of files, I am mostly interested in the duration, so if it is the first (never more than 10 files), is there a special value to be used with roll_keep
to basically disable this check, and only go by duration?
P.S. I would suggest having the documentation use 90d
as default value, instead of 2160h
: In its current form, it reads like an hour value is given because d
is not a supported unit in duration strings.