Setting Up Logrotate on RedHat Linux - LinuxConfig.org


#1
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 https://linuxconfig.org/setting-up-logrotate-on-redhat-linux

#2

Nipuna Tupa

can I rotate /var/log/messages file twice a day? how to do tha?


#3

rat

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


#4

F.Noushi

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