Setting Up Logrotate on RedHat Linux -

Logrotate is a utility designed for administrators who manage servers producing a high volume of log files to help them save some disk space as well as to avoid a potential risk making a system unresponsive due to the lack of disk space.
This is a companion discussion topic for the original entry at


Nipuna Tupa

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