logrotate question
My logrotate.conf as follows:
# see "man logrotate" for details
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 26
# 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 wtmp -- we'll rotate them here
/var/log/wtmp {
monthly
create 0664 root utmp
rotate 1
}
# system-specific logs may be also be configured here.
And in /etc/logrotate.d, I have created a file eform, details as follows:
/var/log/eform.log {
missingok
notifempty
copytruncate
size=4096k
rotate 16
compress
}
I found that on every Thu 4:00, the server will generate a eform.log.gz. My question is, can I change the rotating time? E.g. I want to rotate the log on every Sun instead of Thu. If yes, how can I do that?
Thank you.
|