Example logrotate.conf

From Brandonhutchinson.com

Revision as of 21:45, 26 September 2007 by Hutch (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search
/var/adm/messages /var/adm/proftplog /var/adm/sudo.log /var/adm/sulog /var/log/log.smbd /var/log/xferlog {
  weekly
  rotate 4
  create
  compress
  missingok
}

/var/log/syslog {
  weekly
  rotate 4
  create
  compress
  # Similar to /usr/lib/newsyslog
  postrotate
     kill -HUP `cat /etc/syslog.pid`
  endscript
}

/var/adm/wtmpx {
  monthly
  rotate 1
  create 0664 adm adm
  compress
}
Personal tools