From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/969 Path: news.gmane.org!not-for-mail From: Gerrit Pape Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Pattern matching to different logfiles Date: Tue, 3 Jan 2006 15:11:49 +0100 Message-ID: <20060103141149.10113.qmail@4c728d979d4855.315fe32.mid.smarden.org> References: <92344711-E374-4C12-BC7E-5D71D5491B96@nednieuws.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1136297498 29807 80.91.229.2 (3 Jan 2006 14:11:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 3 Jan 2006 14:11:38 +0000 (UTC) Original-X-From: supervision-return-1205-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Jan 03 15:11:35 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 1Etmss-0008Ok-U0 for gcsg-supervision@gmane.org; Tue, 03 Jan 2006 15:11:31 +0100 Original-Received: (qmail 2953 invoked by uid 76); 3 Jan 2006 14:11:51 -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 2947 invoked from network); 3 Jan 2006 14:11:51 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <92344711-E374-4C12-BC7E-5D71D5491B96@nednieuws.com> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:969 Archived-At: On Tue, Dec 20, 2005 at 01:47:45PM +0100, Charles M. Gerungan wrote: > I have a log that I would like to split to different files. Every > line is prepended with a keyword and I'd like to output to a logdir > named keyword. So if there are 5 different keywords I'd like to log > to five different logdirs, if possible deleting that keyword > (including the trailing space) from the line in the process. Is that > possible? Yes. Stripping the keyword from the log messages must be done through a processor though I think, see svlogd(8). Regards, Gerrit.