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

Weird logrotate



Hello,

We are running a debian 4.0 on our cache server.

Something weird happened the last week, as you can see the logs were supposed to be rotated monthly :

-rw-r--r-- 1 root root 2.6G 2011-04-04 11:45 varnish.log
-rw-r--r-- 1 root root 332M 2011-04-01 06:25 varnish.log.1.gz
-rw-r--r-- 1 root root 1.7G 2011-03-28 06:25 varnish.log.2.gz
-rw-r--r-- 1 root root 1.6G 2011-03-01 06:25 varnish.log.3.gz
-rw-r--r-- 1 root root 1.6G 2011-02-01 06:25 varnish.log.4.gz
-rw-r--r-- 1 root root 1.3G 2011-01-01 06:25 varnish.log.5.gz
-rw-r--r-- 1 root root 1.5G 2010-12-01 06:25 varnish.log.6.gz
-rw-r--r-- 1 root root 1.3G 2010-11-01 06:25 varnish.log.7.gz
-rw-r--r-- 1 root root 1.1G 2010-10-01 06:25 varnish.log.8.gz
-rw-r--r-- 1 root root 962M 2010-09-01 06:25 varnish.log.9.gz
-rw-r--r-- 1 root root 1.8G 2010-08-02 11:58 varnish.log.10.gz

but the log of March was rotated on the 28 of March instead of April the first.

The crontab entries :

# m h dom mon dow user  command
17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) 47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ) 52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )

and the logrotate entrey in /etc/logrotate.d :

/1/logs/varnish.log {
  monthly
  rotate 48
  compress
  #delaycompress
  postrotate
    /usr/sbin/invoke-rc.d varnishncsa reload > /dev/null
  endscript
}

I need to mention also that February was 28 days this year and the time was forwarded one hour (The usual change for summer timing) on the night between 28/02/2011 and 1/03/2011

Is this a known issue in Debian etch ?

We had the same issue on all the servers running etch.
Had anyone experienced the same issue the last week?

Thanks

--
Abbass MAROUNI
Internet Memory Foundation
internetmemory.org



Reply to: