Linux日志切割


/etc/logrotate.d
/var/log/tima/*_console.log {
	copytruncate
	daily
	compress
	rotate 10
	missingok
	size 200M
	dateext
	ifempty
        #endscript
}

/var/log/tima/catalina*.out {
    copytruncate
    weekly
    rotate 90
    compress
    missingok
    size 200M
}

/var/log/tima/*.log {
	copytruncate
	daily
	compress
	rotate 5
	missingok
	size 200M
	dateext
	ifempty
}

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注