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

[cobalt-users] Logrotate Problem 550



Hi All,

I apologize in advance for the long message.

I'm having difficulty with logrotate. It doesn't appear to have rotated the logs in about 2 weeks and now my sites' quota's are starting to fill up.

Here is a snip from my /etc/logrotate.d/site10 file:
/home/.sites/48/site10/logs/web.log {
   missingok
   compress
   size 15M
}

But the logs are 23MB in that site and still aren't being rotated.

I've got a standard Raq550 logrotate.conf file. When I run:
 /usr/sbin/logrotate -d /etc/logrotate.conf

I get this as output:
rotating pattern: /home/.sites/48/site10/logs/mail.log 5242880 bytes (4 rotations)
empty log files are rotated old logs are removed
rotating file /home/.sites/48/site10/logs/mail.log
log does not need rotating
rotating pattern: /home/.sites/48/site10/logs/ftp.log 5242880 bytes (4 rotations)
empty log files are rotated old logs are removed
rotating file /home/.sites/48/site10/logs/ftp.log
log does not need rotating
rotating pattern: /home/.sites/48/site10/logs/web.log 15728640 bytes (4 rotations)
empty log files are rotated old logs are removed
rotating file /home/.sites/48/site10/logs/web.log
log needs rotating
renaming /home/.sites/48/site10/logs/web.log.4.gz to /home/.sites/48/site10/logs/web.log.5.gz renaming /home/.sites/48/site10/logs/web.log.3.gz to /home/.sites/48/site10/logs/web.log.4.gz renaming /home/.sites/48/site10/logs/web.log.2.gz to /home/.sites/48/site10/logs/web.log.3.gz renaming /home/.sites/48/site10/logs/web.log.1.gz to /home/.sites/48/site10/logs/web.log.2.gz renaming /home/.sites/48/site10/logs/web.log to /home/.sites/48/site10/logs/web.log.1
creating new log mode = 0660 uid = 545 gid = 511
compressing new log with: /bin/gzip -9 '/home/.sites/48/site10/logs/web.log.1'
removing old log /home/.sites/48/site10/logs/web.log.5.gz

This all looks fine except when I got and look at the directory I still have this:
23084 -rw-rw----    1 SITE10-l site10   23630406 Oct 13 04:27 web.log
  480 -rw-rw----    1 SITE10-l site10     489827 Sep 26 04:23 web.log.1.gz
  456 -rw-rw----    1 SITE10-l site10     464805 Sep 18 04:14 web.log.2.gz
  476 -rw-rw----    1 SITE10-l site10     483530 Sep 11 04:14 web.log.3.gz
  460 -rw-rw----    1 SITE10-l site10     467530 Sep  4 04:29 web.log.4.gz

So it looks to me like it never rotated.

Any help is greatly appreciated.

Thanks!

Brian