This is a companion discussion topic for the original entry at https://linuxconfig.org/setting-up-logrotate-on-redhat-linux
can I rotate /var/log/messages file twice a day? how to do tha?
rotate (from mannual) is not for weeks/days/etc but rather the number of rotations to keep from reading. many confusing blogs getting this key detail wrong
Thanks for the article.
Using “logrotate -d <config_file>” before “logrotate -f <config_file>” might be useful since one can test with that option while not modifying log files.
<config_file> can be a specific logrotate configuration file. No need to provide the global config