From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1011 Path: news.gmane.org!not-for-mail From: Charlie Brady Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: compressing rotated logfiles Date: Wed, 8 Feb 2006 12:10:48 -0500 (EST) Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: sea.gmane.org 1139418839 6095 80.91.229.2 (8 Feb 2006 17:13:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Feb 2006 17:13:59 +0000 (UTC) Cc: supervision@list.skarnet.org Original-X-From: supervision-return-1247-gcsg-supervision=m.gmane.org@list.skarnet.org Wed Feb 08 18:13:54 2006 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1F6sqA-0006KG-Rl for gcsg-supervision@gmane.org; Wed, 08 Feb 2006 18:10:51 +0100 Original-Received: (qmail 13642 invoked by uid 76); 8 Feb 2006 17:11:12 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 13636 invoked from network); 8 Feb 2006 17:11:11 -0000 X-X-Sender: charlieb@e-smith.charlieb.ott.istop.com Original-To: "Michael P. Soulier" In-Reply-To: Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1011 Archived-At: 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