[ic] Thousands of error logs in .gz format
Tue, 17 Oct 2000 18:43:51 -0500
>The logrotate daemon is behaving as-designed. Just edit your
>config files if you don't want the log rotated out.
Sure, the logrotate daemon is behaving as designed, but it is a bug in MV/IC
(in the RPM version at least). Obviously you don't want to *tell* logrotate
to do that. You shouldn't have to edit the config file. MV/IC is creating
& editing it-but doing it wrong.
It's just a misplaced wildcard in the config file. Instead
/var/log/interchange/*, it could write /var/log/interchange/*error.log.
That would do the trick for all catalogs without causing the problem, or
requiring a separate entry for each catalog. (But if you have other reasons
for specifying the catalogs separately, then of course that would work too.)
And a simple rm won't delete them-there are so many it gets an "Argument
list too long" error. I ended up deleting them one group at a time (like rm
error.log.1.gz.1.gz.1.gz.1.gz.1.gz.1*, then rm
error.log.1.gz.1.gz.1.gz.1.gz.1.gz.2*, and so on).
[mailto:firstname.lastname@example.org] On Behalf Of Eric Paul
Sent: Monday, October 16, 2000 9:26 PM
Subject: Re: [ic] Thousands of error logs in .gz format
As I said, it's not a bug, or a virus (not that you can have a virus under
unix). The logrotate daemon is behaving as-designed. Just edit your
config files if you don't want the log rotated out. Or set it to rotate
less frequently, or not to preserve so many logs.
As for deleting your logs, rm -f error*.gz should do you.
At 10:14 PM 10/16/00, you wrote:
>Eric Paul email@example.com <mailto:firstname.lastname@example.org>
>Wrote on Fri, 06 Oct 2000 14:14:57 -0400
> >Check out the /etc/logrotate.conf file or the files in /etc/logrotate.d/
> > for any references to mv/ic and remove them. This way your error
> >log won't get swaped out on you and will continue to grow to
> >mammoth proportions.
>Has this bug (or virus) been fixed in the latest release. I have been
>running MV rpm install for about 6 months and have a lot more than 42,000
>files to delete. Has any-one written the script to do this deletion...
>Greg Heath <mailto:email@example.com>
>Interchange-users mailing list
Interchange-users mailing list