* [gentoo-user] logrotate @ 2005-08-03 10:54 Uwe Thiem 2005-08-03 11:11 ` Etaoin Shrdlu 0 siblings, 1 reply; 7+ messages in thread From: Uwe Thiem @ 2005-08-03 10:54 UTC (permalink / raw To: gentoo-user Hi folks, from /etc/logrotate.conf: ----- # no packages own lastlog or wtmp -- we'll rotate them here /var/log/wtmp { monthly create 0664 root utmp rotate 1 } ----- It states it rotates lastlog (/var/log/lastlog) but it doesn't and my lastlog grows forever. Doesn't seem right. Anybody else seeing the same or have I messed up? I mean I can easily edit /etc/logrotate.conf but I think it should do that by default. Uwe -- 95% of all programmers rate themselves among the top 5% of all software developers. - Linus Torvalds http://www.uwix.iway.na (last updated: 20.06.2004) -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] logrotate 2005-08-03 10:54 [gentoo-user] logrotate Uwe Thiem @ 2005-08-03 11:11 ` Etaoin Shrdlu 2005-08-03 14:10 ` Uwe Thiem 0 siblings, 1 reply; 7+ messages in thread From: Etaoin Shrdlu @ 2005-08-03 11:11 UTC (permalink / raw To: gentoo-user On Wednesday 03 August 2005 12:54, Uwe Thiem wrote: > Hi folks, > > from /etc/logrotate.conf: > > ----- > # no packages own lastlog or wtmp -- we'll rotate them here > /var/log/wtmp { > monthly > create 0664 root utmp > rotate 1 > } > ----- > > It states it rotates lastlog (/var/log/lastlog) but it doesn't and my > lastlog grows forever. Doesn't seem right. Anybody else seeing the > same or have I messed up? Probably missing something (I don't use logrotate), but seems to me that the above fragment only deals with /var/log/wtmp. To have /var/log/lastlog rotated, add another section for it. -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] logrotate 2005-08-03 11:11 ` Etaoin Shrdlu @ 2005-08-03 14:10 ` Uwe Thiem 2005-08-03 14:32 ` Etaoin Shrdlu 2005-08-04 12:54 ` Richard Fish 0 siblings, 2 replies; 7+ messages in thread From: Uwe Thiem @ 2005-08-03 14:10 UTC (permalink / raw To: gentoo-user On 03 August 2005 12:11, Etaoin Shrdlu wrote: > On Wednesday 03 August 2005 12:54, Uwe Thiem wrote: > > Hi folks, > > > > from /etc/logrotate.conf: > > > > ----- > > # no packages own lastlog or wtmp -- we'll rotate them here > > /var/log/wtmp { > > monthly > > create 0664 root utmp > > rotate 1 > > } > > ----- > > > > It states it rotates lastlog (/var/log/lastlog) but it doesn't and my > > lastlog grows forever. Doesn't seem right. Anybody else seeing the > > same or have I messed up? > > Probably missing something (I don't use logrotate), but seems to me that > the above fragment only deals with /var/log/wtmp. To > have /var/log/lastlog rotated, add another section for it. Are you sure you aren't using it? Have you looked into /etc/cron.daily? Uwe -- 95% of all programmers rate themselves among the top 5% of all software developers. - Linus Torvalds http://www.uwix.iway.na (last updated: 20.06.2004) -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] logrotate 2005-08-03 14:10 ` Uwe Thiem @ 2005-08-03 14:32 ` Etaoin Shrdlu 2005-08-04 12:54 ` Richard Fish 1 sibling, 0 replies; 7+ messages in thread From: Etaoin Shrdlu @ 2005-08-03 14:32 UTC (permalink / raw To: gentoo-user On Wednesday 03 August 2005 16:10, Uwe Thiem wrote: > Are you sure you aren't using it? Have you looked into > /etc/cron.daily? Yes, I'm sure. # emerge -s logrotate * app-admin/logrotate Latest version available: 3.7.1-r1 Latest version installed: [ Not Installed ] Size of downloaded files: 31 kB Homepage: http://www.gentoo.org Description: Rotates, compresses, and mails system logs License: GPL-2 # ls /etc/cron.daily/ slocate syslog.cron where syslog.cron is _not_ part of logrotate, but is instead a script (I suppose it comes with sysklogd, but I'm not sure) whose purpose, as the name says, is to rotate syslog's files. Following the comments in it, I modified it to rotate all the files in /var/log (it's easy, here are the instructions: # sysklogd Cron script to rotate system log files daily. # # If you want to rotate other logfiles daily, edit # this script. An easy way is to add them manually # or to add -a to syslogd-listfiles and add some grep # stuff # # Written by Martin Schulze <joey@debian.org>. ) This does the job for me, without the need to use the "real" logrotate app. -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] logrotate 2005-08-03 14:10 ` Uwe Thiem 2005-08-03 14:32 ` Etaoin Shrdlu @ 2005-08-04 12:54 ` Richard Fish 1 sibling, 0 replies; 7+ messages in thread From: Richard Fish @ 2005-08-04 12:54 UTC (permalink / raw To: gentoo-user Uwe Thiem wrote: >On 03 August 2005 12:11, Etaoin Shrdlu wrote: > > >>On Wednesday 03 August 2005 12:54, Uwe Thiem wrote: >> >> >>>Hi folks, >>> >>>from /etc/logrotate.conf: >>> >>>----- >>># no packages own lastlog or wtmp -- we'll rotate them here >>>/var/log/wtmp { >>> monthly >>> create 0664 root utmp >>> rotate 1 >>>} >>>----- >>> >>>It states it rotates lastlog (/var/log/lastlog) but it doesn't and my >>>lastlog grows forever. Doesn't seem right. Anybody else seeing the >>>same or have I messed up? >>> >>> >>Probably missing something (I don't use logrotate), but seems to me that >>the above fragment only deals with /var/log/wtmp. To >>have /var/log/lastlog rotated, add another section for it. >> >> > >Are you sure you aren't using it? Have you looked into /etc/cron.daily? > > > Why is lastlog growing forever??? Doesn't that only track the most recent logins by userid? It seems to me that file should only grow if you add users. And Etaoin is correct, that block only rotates /var/log/wtmp. The comment is misleading/wrong. -Richard -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <6b16fb4c0809260048jb340d36qf5175e272f09b140@mail.gmail.com>]
* [gentoo-user] logrotate [not found] <6b16fb4c0809260048jb340d36qf5175e272f09b140@mail.gmail.com> @ 2008-09-26 7:49 ` Kaushal Shriyan 2008-09-27 7:10 ` Alan McKinnon 0 siblings, 1 reply; 7+ messages in thread From: Kaushal Shriyan @ 2008-09-26 7:49 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 2433 bytes --] Hi, I am using logrotate utility on gentoo to compress catalina.out file. when i run it using debug mode, I get #/usr/sbin/logrotate -dv /usr/local/bin/scripts/logrotate-tomcat5-catalina.conf reading config file /usr/local/bin/scripts/logrotate-tomcat5-catalina.conf reading config info for /var/log/tomcat5/catalina.out compress_prog is now /bin/gzip Handling 1 logs rotating pattern: /var/log/tomcat5/catalina.out after 1 days (7 rotations) empty log files are not rotated, old logs are removed considering log /var/log/tomcat5/catalina.out log needs rotating rotating log /var/log/tomcat5/catalina.out, log->rotateCount is 7 renaming /var/log/tomcat5/catalina.out.7.gz to /var/log/tomcat5/catalina.out.8.gz (rotatecount 7, logstart 1, i 7), renaming /var/log/tomcat5/catalina.out.6.gz to /var/log/tomcat5/catalina.out.7.gz (rotatecount 7, logstart 1, i 6), renaming /var/log/tomcat5/catalina.out.5.gz to /var/log/tomcat5/catalina.out.6.gz (rotatecount 7, logstart 1, i 5), renaming /var/log/tomcat5/catalina.out.4.gz to /var/log/tomcat5/catalina.out.5.gz (rotatecount 7, logstart 1, i 4), renaming /var/log/tomcat5/catalina.out.3.gz to /var/log/tomcat5/catalina.out.4.gz (rotatecount 7, logstart 1, i 3), renaming /var/log/tomcat5/catalina.out.2.gz to /var/log/tomcat5/catalina.out.3.gz (rotatecount 7, logstart 1, i 2), renaming /var/log/tomcat5/catalina.out.1.gz to /var/log/tomcat5/catalina.out.2.gz (rotatecount 7, logstart 1, i 1), renaming /var/log/tomcat5/catalina.out.0.gz to /var/log/tomcat5/catalina.out.1.gz (rotatecount 7, logstart 1, i 0), copying /var/log/tomcat5/catalina.out to /var/log/tomcat5/catalina.out.1 truncating /var/log/tomcat5/catalina.out error: unable to open /var/log/tomcat5/catalina.out.1 for compression # #cat /usr/local/bin/scripts/logrotate-tomcat5-catalina.conf /var/log/tomcat5/catalina.out { daily missingok copytruncate rotate 7 compress compresscmd /bin/gzip notifempty } #df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 112G 27G 85G 24% / udev 7.9G 156K 7.9G 1% /dev shm 7.9G 0 7.9G 0% /dev/shm /dev/sda1 479M 44M 411M 10% /boot # ls -l /var/log/tomcat5/catalina.out* -rw-r--r-- 1 tomcat tomcat 325519875 Sep 26 00:24 /var/log/tomcat5/catalina.out # Any ideas as what is going wrong Thanks and Regards Kaushal [-- Attachment #2: Type: text/html, Size: 2719 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] logrotate 2008-09-26 7:49 ` Kaushal Shriyan @ 2008-09-27 7:10 ` Alan McKinnon 0 siblings, 0 replies; 7+ messages in thread From: Alan McKinnon @ 2008-09-27 7:10 UTC (permalink / raw To: gentoo-user On Friday 26 September 2008 09:49:57 Kaushal Shriyan wrote: > Hi, > > I am using logrotate utility on gentoo to compress catalina.out file. [snip] > error: unable to open /var/log/tomcat5/catalina.out.1 for compression First thing to check is that the user doing this operation has write permission to this *directory*, or write permissions to the filesystem it resides on -- alan dot mckinnon at gmail dot com ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-09-27 7:10 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2005-08-03 10:54 [gentoo-user] logrotate Uwe Thiem 2005-08-03 11:11 ` Etaoin Shrdlu 2005-08-03 14:10 ` Uwe Thiem 2005-08-03 14:32 ` Etaoin Shrdlu 2005-08-04 12:54 ` Richard Fish [not found] <6b16fb4c0809260048jb340d36qf5175e272f09b140@mail.gmail.com> 2008-09-26 7:49 ` Kaushal Shriyan 2008-09-27 7:10 ` Alan McKinnon
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox