1

Below is my logrotate configuration.I was not able to get the logrotate work using

"sudo /usr/sbin/logrotate /etc/logrotate.conf".But if I execute "sudo logrotate -f /etc/logrotate.conf" it is creating the log file as expected.

/var/log/test/test.log {
    daily
    dateext
    dateformat .%Y-%m-%d
    rotate 4
    copytruncate
    compress
    compressext .tar.gz
    missingok
    notifempty
}

Can anyone help me solve this issue?.i am using Ubuntu14.04 operating system.

0 Answers0