Jul 23, 2003 #1 farley99 MIS Feb 12, 2003 413 US How do i setup log rotate? I wnat it to rotate all logs, do i have to specify each log file? Does anyone have examples?
How do i setup log rotate? I wnat it to rotate all logs, do i have to specify each log file? Does anyone have examples?
Aug 1, 2003 Thread starter #2 farley99 MIS Feb 12, 2003 413 US Is there a better way to rotate logs? Upvote 0 Downvote
Aug 1, 2003 #3 tarn Technical User Aug 19, 2001 534 GB To configure logrotate take a look at /etc/logrotate more logrotate.conf # see "man logrotate" for details # rotate log files weekly weekly # keep 4 weeks worth of backlogs rotate 4 # send errors to root errors root # create new (empty) log files after rotating old ones create # uncomment this if you want your log files compressed #compress # RPM packages drop log rotation information into this directory include /etc/logrotate.d # no packages own lastlog or wtmp -- we'll rotate them here /var/log/wtmp { monthly create 0664 root utmp rotate 1 } # system-specific logs may be configured here Laurie. Upvote 0 Downvote
To configure logrotate take a look at /etc/logrotate more logrotate.conf # see "man logrotate" for details # rotate log files weekly weekly # keep 4 weeks worth of backlogs rotate 4 # send errors to root errors root # create new (empty) log files after rotating old ones create # uncomment this if you want your log files compressed #compress # RPM packages drop log rotation information into this directory include /etc/logrotate.d # no packages own lastlog or wtmp -- we'll rotate them here /var/log/wtmp { monthly create 0664 root utmp rotate 1 } # system-specific logs may be configured here Laurie.