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 -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org Archive: 4D999823.9010503@internetmemory.org">http://lists.debian.org/4D999823.9010503@internetmemory.org |
Weird logrotate
On Mon, 04 Apr 2011 12:06:27 +0200, MAROUNI Abbass wrote:
> 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 : (...) > but the log of March was rotated on the 28 of March instead of April the > first. (...) > 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? Same here on a lenny machine. Apache logs are rotated monthly and the one of March breaks in 2011-03-28 and April log starts with entries on March 28, 29, 30 and 31. Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org Archive: pan.2011.04.04.14.54.27@gmail.com">http://lists.debian.org/pan.2011.04.04.14.54.27@gmail.com |
| All times are GMT. The time now is 12:20 AM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.