# see "man logrotate" for details # rotate log files weekly weekly # keep 4 weeks worth of backlogs rotate 4 # send errors to root #errors hoge@hoge.com # create new (empty) log files after rotating old ones create # uncomment this if you want your log files compressed compress # Common Solaris system files and settings /var/adm/wtmpx { # multiple of 372 bytes (each record size for solaris) size=363k rotate 4 } /var/adm/wtmp { size=363k rotate 4 } /var/adm/messages { size=200k rotate 4 postrotate kill -HUP `cat /etc/syslog.pid` endscript } /var/log/syslog { size=200k rotate 4 postrotate kill -HUP `cat /etc/syslog.pid` endscript } /var/adm/lastlog { size=300k rotate 1 } # All non-os customizations should be in this directory include /etc/logrotate.d