[syslog-ng] Logrotate Questions And Solicitation For Ideas...
Valdis.Kletnieks at vt.edu
Valdis.Kletnieks at vt.edu
Thu Jul 20 04:07:39 CEST 2006
On Wed, 19 Jul 2006 22:26:15 -0000, Vadim Pushkin said:
> Again, I am looking to rotate my logs, not delete them. Ideally, something
> like retaining *.logs.1 *.logs.2, etc.
Oh my. They *have* to be called logs, logs.1, logs.2, logs.3... logs.30? :)
We find it a lot easier if they're called:
[/logs/aggregate/2006/07]1 ls
maillog-2006-0701 maillog-2006-0711 messages-2006-0702 messages-2006-0712
maillog-2006-0702 maillog-2006-0712 messages-2006-0703 messages-2006-0713
maillog-2006-0703 maillog-2006-0713 messages-2006-0704 messages-2006-0714
maillog-2006-0704 maillog-2006-0714 messages-2006-0705 messages-2006-0715
maillog-2006-0705 maillog-2006-0715 messages-2006-0706 messages-2006-0716
maillog-2006-0706 maillog-2006-0716 messages-2006-0707 messages-2006-0717
maillog-2006-0707 maillog-2006-0717 messages-2006-0708 messages-2006-0718
maillog-2006-0708 maillog-2006-0718 messages-2006-0709 messages-2006-0719
maillog-2006-0709 maillog-2006-0719 messages-2006-0710
maillog-2006-0710 messages-2006-0701 messages-2006-0711
(there's more in ../06 and ../05, going back some 90 days actually). It's a
lot easier that way than trying to remember how many days ago June 28 was -
we *know* the msgs are in 06/*0628. That's especially helpful when you're
trying to troubleshoot something at 1AM and keep forgetting it's another
day back and keep wondering why you can't find it in June 29th's logs. ;)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 226 bytes
Desc: not available
Url : http://lists.balabit.hu/pipermail/syslog-ng/attachments/20060719/4941e10a/attachment.pgp
More information about the syslog-ng
mailing list