httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Chang <thomas200...@yahoo.de>
Subject [users@httpd] A question about log rotation (/etc/logrotation.d and /etc/logrotation.d/httpd)
Date Tue, 28 Dec 2010 12:55:09 GMT
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




Mime
View raw message