https://wiki.vpsget.com/index.php?title=Log_rotation&feed=atom&action=historyLog rotation - Revision history2024-03-29T12:10:57ZRevision history for this page on the wikiMediaWiki 1.31.1https://wiki.vpsget.com/index.php?title=Log_rotation&diff=6795&oldid=prevVq: Created page with "Log rotation is handled by cron job using conf file. Cron job might be stored at the file: cat /etc/cron.daily/logrotate Conf file specified in a cron job file, for example: ..."2014-09-29T16:26:24Z<p>Created page with "Log rotation is handled by cron job using conf file. Cron job might be stored at the file: cat /etc/cron.daily/logrotate Conf file specified in a cron job file, for example: ..."</p>
<p><b>New page</b></p><div>Log rotation is handled by cron job using conf file.<br />
Cron job might be stored at the file:<br />
cat /etc/cron.daily/logrotate<br />
Conf file specified in a cron job file, for example:<br />
cat /etc/logrotate.conf<br />
If you'd like to compress "/var/log/messages" you can add the following lines to "/etc/logrotate.conf"<br />
# uncomment this if you want your log files compressed<br />
compress <br />
<br />
/var/log/messages {<br />
rotate 5<br />
weekly<br />
postrotate<br />
/usr/bin/killall -HUP syslogd<br />
endscript<br />
}</div>Vq