/etc/logrotate.conf 说rotate logs "weekly"
/etc/logrotate.d/ssh 说
/var/log/ssh.log {
compress
dateext
maxage 120
rotate 99
missingok
notifempty
size +4096k
create 640 root p4admin
sharedscripts
postrotate
/etc/init.d/syslog reload
endscript
}
/var/lib/logrotate.status 表示上次旋转的 ssh 在“/var/log/ssh.log”2013-1-4
但以上与我们在文件上看到的数据不匹配......
-rw-r----- 1 root user 201M Jan 4 09:47 /var/log/ssh.log
-rw-r----- 1 root user 65M Oct 19 04:02 /var/log/ssh.log-20121019.gz
-rw-r----- 1 root user 64M Nov 28 04:02 /var/log/ssh.log-20121128.gz
-rw-r----- 1 root user 63M Oct 23 04:02 /var/log/ssh.log-20121023.gz
任何想法,我错过了什么?