A question about log rotation (/etc/logrotation.d and /etc/logrotation.d/httpd)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux