From: Charlie Brady <charlieb-supervision@budge.apana.org.au>
Cc: supervision@list.skarnet.org
Subject: Re: compressing rotated logfiles
Date: Wed, 8 Feb 2006 12:10:48 -0500 (EST) [thread overview]
Message-ID: <Pine.LNX.4.61.0602081208480.5555@e-smith.charlieb.ott.istop.com> (raw)
In-Reply-To: <fb6605670602080840p69128902u58b9b7d531c1d56a@mail.gmail.com>
On Wed, 8 Feb 2006, Michael P. Soulier wrote:
> When using multilog or svlogd, it's simple enough to add a processor
> of gzip to compress rotated logs. However, it would greatly help our
> tools if the rotated, compressed logfile had a .gz file extension.
>
> Can anyone suggest a good way to accomplish this at rotation time?
Since I assume that you are doing this on linux, I'd suggest that you use
inotify to watch the log directory and do renames when svlogd has finished
its post-processing.
Perl API is here:
http://www.edoceo.com/creo/inotify/perl-inotify.php
next prev parent reply other threads:[~2006-02-08 17:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-08 16:40 Michael P. Soulier
2006-02-08 17:10 ` Charlie Brady [this message]
2006-02-09 3:04 ` Michael P. Soulier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.61.0602081208480.5555@e-smith.charlieb.ott.istop.com \
--to=charlieb-supervision@budge.apana.org.au \
--cc=supervision@list.skarnet.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).