Hello all,

By default the log rotate every week and add the running number after the log 
file. Now I want to change this so that all the log files under /var/log/httpd 
rotate every day and end with date with format ddmmyyyy.

I change the /etc/logrotate.d/gttpd as follow:

/var/log/httpd/*log {
    daily
    dateexe
    rotate 60
    missingok
    notifempty
    sharedscripts
    postrotate
        /sbin/service httpd reload > /dev/null 2>/dev/null || true
    endscript
}


But it seems it doesn't work. The log files under /var/log/httpd/ still end 
with number.

Can someone help?

Regards

Thomas



Reply via email to