Skip to Content
Deploying Linux on IBM eServer pSeries Clusters
book

Deploying Linux on IBM eServer pSeries Clusters

by Dino Quintero, Prabhakar Attaluri, Tomas Baublys, Xinghong He, Chin Yau Lee, Francois Thomas
December 2003
Intermediate to advanced content levelIntermediate to advanced
458 pages
9h 3m
English
IBM Redbooks
Content preview from Deploying Linux on IBM eServer pSeries Clusters

4.4. Log rotation

Most of daemons like syslog append their events and logs into a file. As a result, the file size will get larger over time. To avoid this, Linux uses logrotate to manage logs. Logrotate is run daily by the cron; it can create and then zip up the files into their respective folders. The main configuration file of logrotate is located at /etc/logrotate.conf. Example 4-13 shows logrotate.conf configuration file in a standard SLES 8 server.

Example 4-13. Sample of logrotate configuration file
 # /etc/logrotate.conf configuration file # rotate log files weekly weekly # keep 4 weeks worth of backlogs rotate 4 # create new (empty) log files after rotating old ones create # uncomment this if you want your log files compressed #compress ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

IBM AIX Version 7.1 Differences Guide

IBM AIX Version 7.1 Differences Guide

Richard Bassemir, Thierry Fauck, Chris Gibson, Brad Gough, Murali Neralla, Armin Röll, Murali Vaddagiri, Scott Vetter

Publisher Resources

ISBN: 0738498769Purchase book