* Pattern matching to different logfiles
@ 2005-12-20 12:47 Charles M. Gerungan
2006-01-03 14:11 ` Gerrit Pape
0 siblings, 1 reply; 2+ messages in thread
From: Charles M. Gerungan @ 2005-12-20 12:47 UTC (permalink / raw)
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?
--
Regards, Charles.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Pattern matching to different logfiles
2005-12-20 12:47 Pattern matching to different logfiles Charles M. Gerungan
@ 2006-01-03 14:11 ` Gerrit Pape
0 siblings, 0 replies; 2+ messages in thread
From: Gerrit Pape @ 2006-01-03 14:11 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-01-03 14:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-20 12:47 Pattern matching to different logfiles Charles M. Gerungan
2006-01-03 14:11 ` Gerrit Pape
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).