Re: [gentoo-user] Logrotate ignores standard log files

2020-08-05 Thread Michael
On Monday, 3 August 2020 07:58:03 BST Bertram Scharpf wrote: > Hi, > > I detected that since mid-May my main log files > /var/log/{messages,auth.log,daemon.log,...} > don't get rotated any more. > > I tried to solve this by making an entry in > /etc/logrotate.conf, but that doesn't work. > "maxsi

[gentoo-user] Logrotate ignores standard log files

2020-08-02 Thread Bertram Scharpf
Hi, I detected that since mid-May my main log files /var/log/{messages,auth.log,daemon.log,...} don't get rotated any more. I tried to solve this by making an entry in /etc/logrotate.conf, but that doesn't work. "maxsize" works, but not "weekly" nor "daily". What happened in May and what do I ha

Re: [gentoo-user] logrotate ... won't!

2017-02-13 Thread Neil Bothwick
On Sun, 12 Feb 2017 21:26:51 -0600, Dale wrote: > >> Thanks Alexander, it pays going back to basics ... for some reason my > >> cronie service was not running. o_O > >> > >> I added it to default runlevel and hopefully it will do its magic > >> from now on. > > I'm glad I'm not the only one pro

Re: [gentoo-user] logrotate ... won't!

2017-02-12 Thread Dale
Peter Humphrey wrote: > On Sunday 12 Feb 2017 17:32:30 Mick wrote: > >> Thanks Alexander, it pays going back to basics ... for some reason my >> cronie service was not running. o_O >> >> I added it to default runlevel and hopefully it will do its magic from now >> on. > I'm glad I'm not the only o

Re: [gentoo-user] logrotate ... won't!

2017-02-12 Thread Peter Humphrey
On Sunday 12 Feb 2017 17:32:30 Mick wrote: > Thanks Alexander, it pays going back to basics ... for some reason my > cronie service was not running. o_O > > I added it to default runlevel and hopefully it will do its magic from now > on. I'm glad I'm not the only one prone to this kind of thing

Re: [gentoo-user] logrotate ... won't!

2017-02-12 Thread Mick
On Sunday 12 Feb 2017 19:11:23 Alexander Kapshuk wrote: > On Sun, Feb 12, 2017 at 6:57 PM, Mick wrote: > > I am perplexed why box of mine will not logrotate system logs, which have > > now grown into gigs. kern.log, syslog, messages, etc. are eating up > > space unconstrained, to the point where

Re: [gentoo-user] logrotate ... won't!

2017-02-12 Thread Alexander Kapshuk
On Sun, Feb 12, 2017 at 6:57 PM, Mick wrote: > I am perplexed why box of mine will not logrotate system logs, which have now > grown into gigs. kern.log, syslog, messages, etc. are eating up space > unconstrained, to the point where the partition run out of it. > > Trying to run /etc/cron.daily/l

[gentoo-user] logrotate ... won't!

2017-02-12 Thread Mick
I am perplexed why box of mine will not logrotate system logs, which have now grown into gigs. kern.log, syslog, messages, etc. are eating up space unconstrained, to the point where the partition run out of it. Trying to run /etc/cron.daily/logrotate from a terminal does not show anything in m

Re: [gentoo-user] logrotate: name of log file after it's rotated?

2016-04-02 Thread Neil Bothwick
On Sat, 2 Apr 2016 08:51:30 +0200, Alan McKinnon wrote: > > Exactly, and that's why there needs to be some sort of place holder > > for the file name. > I don't think it's a case of "there needs to be". > I think it's more a case of "you want it to be to solve this special > problem you have", an

Re: [gentoo-user] logrotate: name of log file after it's rotated?

2016-04-01 Thread Alan McKinnon
On 02/04/2016 04:01, lee wrote: >> It depends. There are options to tell logrotate to use, or not use, >> > dates in the new filename, and what compression to use or not use. So >> > the names can vary. > Exactly, and that's why there needs to be some sort of place holder for > the file name. >

Re: [gentoo-user] logrotate: name of log file after it's rotated?

2016-04-01 Thread lee
Alan McKinnon writes: > On 25/03/2016 13:46, lee wrote: >> >> Hi, >> >> is there a built-in way (like a place holder) to figure out what name a >> rotated log file has been given by logrotate? >> >> Here's what I'm trying to do: >> >> >> , [ cat /etc/logrotate.d/exim } >> | /var/log/exim

Re: [gentoo-user] logrotate: name of log file after it's rotated?

2016-03-25 Thread Alan McKinnon
On 25/03/2016 13:46, lee wrote: > > Hi, > > is there a built-in way (like a place holder) to figure out what name a > rotated log file has been given by logrotate? > > Here's what I'm trying to do: > > > , [ cat /etc/logrotate.d/exim } > | /var/log/exim/exim*.log { > | daily > |

[gentoo-user] logrotate: name of log file after it's rotated?

2016-03-25 Thread lee
Hi, is there a built-in way (like a place holder) to figure out what name a rotated log file has been given by logrotate? Here's what I'm trying to do: , [ cat /etc/logrotate.d/exim } | /var/log/exim/exim*.log { | daily | missingok | rotate 800 | compress |

Re: [gentoo-user] logrotate: /var/log/portage/elog "insecure permissions"?

2011-08-29 Thread Florian Philipp
Am 28.08.2011 20:44, schrieb Florian Philipp: > Am 28.08.2011 13:14, schrieb Mick: >> On Sunday 07 Aug 2011 16:20:18 Florian Philipp wrote: >>> Am 07.08.2011 02:22, schrieb Mick: On Friday 05 Aug 2011 23:08:38 Neil Bothwick wrote: > On Fri, 05 Aug 2011 17:59:00 +0200, Florian Philipp wrote

Re: [gentoo-user] logrotate: /var/log/portage/elog "insecure permissions"?

2011-08-28 Thread Florian Philipp
Am 28.08.2011 13:14, schrieb Mick: > On Sunday 07 Aug 2011 16:20:18 Florian Philipp wrote: >> Am 07.08.2011 02:22, schrieb Mick: >>> On Friday 05 Aug 2011 23:08:38 Neil Bothwick wrote: On Fri, 05 Aug 2011 17:59:00 +0200, Florian Philipp wrote: > Yes, this was introduced in 3.8.0 to fix sec

Re: [gentoo-user] logrotate: /var/log/portage/elog "insecure permissions"?

2011-08-28 Thread Mick
On Sunday 07 Aug 2011 16:20:18 Florian Philipp wrote: > Am 07.08.2011 02:22, schrieb Mick: > > On Friday 05 Aug 2011 23:08:38 Neil Bothwick wrote: > >> On Fri, 05 Aug 2011 17:59:00 +0200, Florian Philipp wrote: > >>> Yes, this was introduced in 3.8.0 to fix security issues [1]. Change > >>> your co

Re: [gentoo-user] logrotate: /var/log/portage/elog "insecure permissions"?

2011-08-09 Thread Mick
On Sunday 07 Aug 2011 16:20:18 Florian Philipp wrote: > Am 07.08.2011 02:22, schrieb Mick: > > On Friday 05 Aug 2011 23:08:38 Neil Bothwick wrote: > >> On Fri, 05 Aug 2011 17:59:00 +0200, Florian Philipp wrote: > >>> Yes, this was introduced in 3.8.0 to fix security issues [1]. Change > >>> your co

Re: [gentoo-user] logrotate: /var/log/portage/elog "insecure permissions"?

2011-08-07 Thread Florian Philipp
Am 07.08.2011 02:22, schrieb Mick: > On Friday 05 Aug 2011 23:08:38 Neil Bothwick wrote: >> On Fri, 05 Aug 2011 17:59:00 +0200, Florian Philipp wrote: >>> Yes, this was introduced in 3.8.0 to fix security issues [1]. Change >>> your config to look like this: >>> /var/log/portage/elog/summary.log {

Re: [gentoo-user] logrotate: /var/log/portage/elog "insecure permissions"?

2011-08-06 Thread Mick
On Friday 05 Aug 2011 23:08:38 Neil Bothwick wrote: > On Fri, 05 Aug 2011 17:59:00 +0200, Florian Philipp wrote: > > Yes, this was introduced in 3.8.0 to fix security issues [1]. Change > > your config to look like this: > > /var/log/portage/elog/summary.log { > > su portage portage > > ... > > } >

Re: [gentoo-user] logrotate: /var/log/portage/elog "insecure permissions"?

2011-08-05 Thread Neil Bothwick
On Fri, 05 Aug 2011 17:59:00 +0200, Florian Philipp wrote: > Yes, this was introduced in 3.8.0 to fix security issues [1]. Change > your config to look like this: > /var/log/portage/elog/summary.log { > su portage portage > ... > } > > Disclaimer: I've not really tried this (yet) but I think I'm

Re: [gentoo-user] logrotate: /var/log/portage/elog "insecure permissions"?

2011-08-05 Thread Florian Philipp
Am 05.08.2011 17:22, schrieb Jarry: > Hi, > today I received this mail from cron: > --- > error: skipping "/var/log/portage/elog/summary.log" because > parent directory has insecure permissions (It's world writable > or writable by group which is not "root") Set "su" directive > in config file to t

[gentoo-user] logrotate: /var/log/portage/elog "insecure permissions"?

2011-08-05 Thread Jarry
Hi, today I received this mail from cron: --- error: skipping "/var/log/portage/elog/summary.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for

Re: [gentoo-user] logrotate blocks portage?

2011-07-27 Thread Pandu Poluan
On Thu, Jul 28, 2011 at 13:39, Pandu Poluan wrote: > On Thu, Jul 28, 2011 at 13:34, Walter Dnes wrote: >>  One more question... when you ran "emerge --sync", did you see a >> message telling you to update portage immediately?  When you see that >> message, do it right away before updating anythin

Re: [gentoo-user] logrotate blocks portage?

2011-07-27 Thread Pandu Poluan
On Thu, Jul 28, 2011 at 13:34, Walter Dnes wrote: >  One more question... when you ran "emerge --sync", did you see a > message telling you to update portage immediately?  When you see that > message, do it right away before updating anything else. > > -- > Walter Dnes > My `emerge --sync` happe

Re: [gentoo-user] logrotate blocks portage?

2011-07-27 Thread Walter Dnes
One more question... when you ran "emerge --sync", did you see a message telling you to update portage immediately? When you see that message, do it right away before updating anything else. -- Walter Dnes

Re: [gentoo-user] logrotate blocks portage?

2011-07-27 Thread Walter Dnes
On Thu, Jul 28, 2011 at 11:43:46AM +0700, Pandu Poluan wrote > (app-admin/logrotate-3.7.9-r2::gentoo, installed) pulled in by > app-admin/logrotate required by (net-proxy/squid-3.1.8::gentoo, installed) > app-admin/logrotate required by @selected > > (sys-apps/portage-2.2.0_alpha47::g

[gentoo-user] logrotate blocks portage?

2011-07-27 Thread Pandu Poluan
Tried `emerge -avuND @world` and found out that logrotate blocks portage : Total: 17 packages (13 upgrades, 1 downgrade, 2 new, 1 in new slot), Size of downloads: 39,167 kB Conflict: 1 block (1 unsatisfied) * Error: The above package list contains packages which cannot be * installed at the sam

Re: [gentoo-user] logrotate fails since a few days

2010-07-12 Thread Enrico Weigelt
* Helmut Jarausch wrote: > On 07/12/10 11:00:00, Enrico Weigelt wrote: > > do you have the process accounting deamon running ? > > No, and I've never done so. Thats why the logfile is missing ;-) If you dont have that daemon running (and so nobody write to that logfile), you could simply remov

Re: [gentoo-user] logrotate fails since a few days

2010-07-12 Thread Helmut Jarausch
On 07/12/10 11:00:00, Enrico Weigelt wrote: > * Helmut Jarausch wrote: > > Hi, > > > > since a few days logrotate is failing due to > > error: stat of /var/account/pacct failed: No such file or directory > > do you have the process accounting deamon running ? No, and I've never done so. > >

Re: [gentoo-user] logrotate fails since a few days

2010-07-12 Thread Enrico Weigelt
* Helmut Jarausch wrote: > Hi, > > since a few days logrotate is failing due to > error: stat of /var/account/pacct failed: No such file or directory do you have the process accounting deamon running ? did you instruct logrotate to create this logfile if missing ? cu --

[gentoo-user] logrotate fails since a few days

2010-07-12 Thread Helmut Jarausch
Hi, since a few days logrotate is failing due to error: stat of /var/account/pacct failed: No such file or directory What has changed, what am I missing? Many thanks for a hint, Helmut. -- Helmut Jarausch Lehrstuhl fuer Numerische Mathematik RWTH - Aachen University D 52056 Aachen, Germany

Re: [gentoo-user] logrotate - strange error message

2010-05-10 Thread Tomáš Linhart
2010/5/10 Alan McKinnon : > Please hash out all the lines in the denyhosts rotate file and run > "logrotate -d /etc/logrotate.conf" > Then let's see what error comes up. > > -- > alan dot mckinnon at gmail dot com > > I hit the same problem few days ago but I didn't look for a solution until today

Re: [gentoo-user] logrotate - strange error message

2010-05-10 Thread Alan McKinnon
On Monday 10 May 2010 11:40:29 Helmut Jarausch wrote: > On 10 May, Alan McKinnon wrote: > > On Monday 10 May 2010 09:46:11 Helmut Jarausch wrote: > >> Hi, > >> I have the following file as /etc/logrotate.d/denyhosts > >> /var/log/denyhosts { > >> > >>missingok > >>notifempty > >>create

Re: [gentoo-user] logrotate - strange error message

2010-05-10 Thread Helmut Jarausch
On 10 May, Alan McKinnon wrote: > On Monday 10 May 2010 09:46:11 Helmut Jarausch wrote: >> Hi, >> I have the following file as /etc/logrotate.d/denyhosts >> /var/log/denyhosts { >> missingok >> notifempty >> create 0640 root root >> sharedscripts >> prerotate >>

Re: [gentoo-user] logrotate - strange error message

2010-05-10 Thread Alan McKinnon
On Monday 10 May 2010 09:46:11 Helmut Jarausch wrote: > Hi, > I have the following file as /etc/logrotate.d/denyhosts > /var/log/denyhosts { > missingok > notifempty > create 0640 root root > sharedscripts > prerotate > /etc/init.d/denyhosts stop >

[gentoo-user] logrotate - strange error message

2010-05-10 Thread Helmut Jarausch
Hi, I have the following file as /etc/logrotate.d/denyhosts /var/log/denyhosts { missingok notifempty create 0640 root root sharedscripts prerotate /etc/init.d/denyhosts stop endscript postrotate /etc/init.d/den

Re: [gentoo-user] logrotate

2008-09-27 Thread Alan McKinnon
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 permis

[gentoo-user] logrotate

2008-09-26 Thread Kaushal Shriyan
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/

[gentoo-user] Logrotate status error

2008-08-09 Thread Mick
Hi All, I have noticed that the log files on a box of mine are getting larger than expected. I ran logrotate by hand to see if I get any errors and this came up: # logrotate -f /etc/logrotate.conf error: line too long in state file /var/lib/logrotate.status # ls -la /var/lib/logrotate.status

Re: [gentoo-user] logrotate not working

2007-09-25 Thread Arnau Bria
On Tue, 25 Sep 2007 12:36:57 +0100 Neil Bothwick wrote: > On Tue, 25 Sep 2007 12:06:09 +0200, Arnau Bria wrote: > [...] > blog_log_access_common does not match the *log pattern in the config > file. You're completely right... apache2/access_fotos.emergetux.net_log apache2/blog_log_access_c

Re: [gentoo-user] logrotate not working

2007-09-25 Thread Neil Bothwick
On Tue, 25 Sep 2007 12:06:09 +0200, Arnau Bria wrote: > I have this in my logroate.d/apache > # Apache2 logrotate snipet for Gentoo Linux > # Contributes by Chuck Short > # > /var/log/apache2/*log { > daily > missingok > notifempty > size 5M > sharedscripts > postrotate > /etc/init.d/

[gentoo-user] logrotate not working

2007-09-25 Thread Arnau Bria
Hi, I have this in my logroate.d/apache # Apache2 logrotate snipet for Gentoo Linux # Contributes by Chuck Short # /var/log/apache2/*log { daily missingok notifempty size 5M sharedscripts postrotate /etc/init.d/apache2 reload > /dev/null 2>&1 || true endscript } And my logs are: #

Re: [gentoo-user] logrotate

2007-08-13 Thread Arnau Bria
On Mon, 13 Aug 2007 08:19:17 -0700 James Ausmus wrote: > On 8/13/07, Arnau Bria <[EMAIL PROTECTED]> wrote: > > On Mon, 13 Aug 2007 07:18:49 -0700 > > James Ausmus wrote: > > > > > On 8/13/07, Arnau Bria <[EMAIL PROTECTED]> wrote: > > [...] > > > Just a stab in the dark - do you have your cron serv

Re: [gentoo-user] logrotate

2007-08-13 Thread James Ausmus
On 8/13/07, Arnau Bria <[EMAIL PROTECTED]> wrote: > On Mon, 13 Aug 2007 07:18:49 -0700 > James Ausmus wrote: > > > On 8/13/07, Arnau Bria <[EMAIL PROTECTED]> wrote: > [...] > > Just a stab in the dark - do you have your cron service running? Can > > you test that it properly runs other cron scripts

Re: [gentoo-user] logrotate

2007-08-13 Thread Arnau Bria
On Mon, 13 Aug 2007 07:18:49 -0700 James Ausmus wrote: > On 8/13/07, Arnau Bria <[EMAIL PROTECTED]> wrote: [...] > Just a stab in the dark - do you have your cron service running? Can > you test that it properly runs other cron scripts? Yep, cause I have 5 gziped log files, so I works until the fi

Re: [gentoo-user] logrotate

2007-08-13 Thread James Ausmus
On 8/13/07, Arnau Bria <[EMAIL PROTECTED]> wrote: > Hi, > > I have my logrotate configured but it does not work propertly. > I have logrotate in crontab: > # crontab -l > [...] > 2 0 * * * /usr/sbin/logrotate /etc/logrotate.conf Just a stab in the dark - do you have your cron service runnin

[gentoo-user] logrotate

2007-08-13 Thread Arnau Bria
Hi, I have my logrotate configured but it does not work propertly. Let me explain: mail # ls -lsah total 20M 4,0K drw--- 2 root root 4,0K ago 13 03:10 . 4,0K drwxr-xr-x 15 root root 4,0K ago 13 03:10 .. 15M -rw--- 1 root root 15M ago 13 12:38 mail.log 2,4M -rw--- 1 root root 2,4M

Re: [gentoo-user] logrotate desn't create new empty files

2007-08-11 Thread Jakob
On 8/5/07, Mick <[EMAIL PROTECTED]> wrote: > I am not sure I understand "that doesn't work": > > It does not rotate the message log file at all? > It rotates it but does not create a new empty message log file after rotation? Thanks for your reply and sorry for answering so late. rotating the logs

Re: [gentoo-user] logrotate desn't create new empty files

2007-08-05 Thread Mick
On Sunday 05 August 2007 08:36, Jakob wrote: > Thanks for that hint, but there was nothing about logrotate in dead.letter. > logrotate itself works fine for me but I want the messages file erased > after rotating and start with a new file and that doesn't work. > any more ideas? I am not sure I u

Re: [gentoo-user] logrotate desn't create new empty files

2007-08-05 Thread Jakob
> Look for a dead.letter file in /root which may contain any errors of the > logrotate script. In my system there is /etc/logrotate.d/syslog-ng which > contains: > === > # > $Header: > /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.logrotate,v > 1.2 20

Re: [gentoo-user] logrotate desn't create new empty files

2007-08-04 Thread Mick
On Saturday 04 August 2007 09:29, Jakob wrote: > > from LOGROTATE(8): > > > > Here is more information on the directives which may be included in a > > logrotate configuration file: > > > > [...] > > > > copy Make a copy of the log file, but don't change the original at > > all

Re: [gentoo-user] logrotate desn't create new empty files

2007-08-04 Thread Jakob
> from LOGROTATE(8): > > Here is more information on the directives which may be included in a > logrotate configuration file: > > [...] > > copy Make a copy of the log file, but don't change the original at > all. This option can be used, for instance, to make a snapshot >

Re: [gentoo-user] logrotate desn't create new empty files

2007-08-03 Thread Matthias Guede
2007/8/3, Jakob <[EMAIL PROTECTED]>: > Hi all, > > I'm running logrotate on my homeserver and the logs are rotated > correctly but after rotating it should create new empty log files and > that doesnt work. > > here are my confs: > /etc/logrotate.conf: > # $Header: /var/cvsroot/gentoo-x86/app-admin

Re: [gentoo-user] logrotate desn't create new empty files

2007-08-03 Thread Dale
Jakob wrote: > Hi all, > > I'm running logrotate on my homeserver and the logs are rotated > correctly but after rotating it should create new empty log files and > that doesnt work. > > here are my confs: > /etc/logrotate.conf: > # $Header: /var/cvsroot/gentoo-x86/app-admin/logrotate/files/logrota

[gentoo-user] logrotate desn't create new empty files

2007-08-03 Thread Jakob
Hi all, I'm running logrotate on my homeserver and the logs are rotated correctly but after rotating it should create new empty log files and that doesnt work. here are my confs: /etc/logrotate.conf: # $Header: /var/cvsroot/gentoo-x86/app-admin/logrotate/files/logrotate.conf,v 1.2 2004/07/18 01:5

[gentoo-user] logrotate won't rotate portage logs

2007-01-15 Thread Mick
Hi All, I do not understand why the log files within /var/log/portage/ will not rotate on my PC, while they rotate fine on my laptop. The /etc/logrotate.conf is the same on both boxen: == # rotate log files weekly weekly #daily # keep 4 weeks worth of bac

Re: [gentoo-user] logrotate

2005-08-04 Thread Richard Fish
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 } -

Re: [gentoo-user] logrotate

2005-08-03 Thread Etaoin Shrdlu
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 d

Re: [gentoo-user] logrotate

2005-08-03 Thread Uwe Thiem
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 > >

Re: [gentoo-user] logrotate

2005-08-03 Thread Etaoin Shrdlu
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/la

[gentoo-user] logrotate

2005-08-03 Thread Uwe Thiem
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. Anybo