This sounds like it is working correctly; is there a reason you think it
is not?
From the logtorate.conf manpage:
minsize size
Log files are rotated when they grow bigger than size bytes, but not
before the additionally specified time interval (daily, weekly, monthly,
or yearly). The related size option is similar except that it is mutually
exclusive with the time interval
options, and it causes log files to be rotated without
regard for the last rotation time. When minsize is used, both the size
and timestamp of a log file are considered.
size size
Log files are rotated only if they grow bigger then size bytes.
If size is followed by k, the size is assumed to be in kilobytes. If the
M is used, the size is in megabytes, and if G is used, the size is in
gigabytes. So size 100, size 100k, size 100M and size 100G are all valid.
Please pardon the typo in the ‘size’ description there; it’s not mine.
You commented out, i.e. took away, the size parameter, so now the system
is no longer constrained to rotate only when the file is greater than
4096k, and instead will rotate when the other requirements are met
(notifempty is the only one that stands out to me).
–
Good luck.
If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below.
If you want to send me a private message, please let me know in the
forum as I do not use the web interface often.
I initially did not understand that the weekly parameter from the main config would take effect without the size, because the size overrules all “time” parameters.
Apparently so in any case.
I then edited my post to change it from being a question.