My logrotate works perfectly, except for this configuration:
/var/awdata/awarchive.*.log
/var/log/awstats.log
{
rotate 12
}
This is my logrotate -d /etc/logorate.conf
output:
considering log /var/awdata/awarchive.domain1.it.log
log needs rotating
and then:
rotating log /var/awdata/awarchive.domain1.it.log, log->rotateCount is 4
dateext suffix '-20120517'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
fscreate context set to unconfined_u:object_r:var_t:s0
renaming /var/awdata/awarchive.domain1.it.log to /var/awdata/awarchive.domain1.it.log-20120517
creating new /var/awdata/awarchive.domain1.it.log mode = 0666 uid = 99 gid = 501
logrotate seems to work perfectly, but it does not do what I wrote. :-(
==
ls -lah /var/awdata/*domain1*
About domain1:
-rw-rw-rw-. 1 nobody nogroup 4.7G May 17 17:16 /var/awdata/awarchive.domain1.it.log
-rw-rw-rw-. 1 nobody nogroup 7.6G May 9 04:16 /var/awdata/awarchive.domain1.it.log-20120509
The only rotate log *-20120509 was forced with the -f
option.
[root@lnx1 awdata]# ls -ld /var/awdata
drwxr-xr-x. 2 nobody nogroup 188416 May 17 18:52 /var/awdata
Any ideas?