syslog filters

Wanting to filter syslog output with a script attached to the syslog
daemon.

I've been all over cpan with many search strings but what I turn up
appears to be way more complex than I'm looking for.

I thought to write my own script and have done so more than once.
Relying on a named pipe to capture more or less live output from the
system logger.

I wondered if there is a way, or a module, that makes syslog write
directly to a perl script some how. (other than a named pipe).

Short of that, I'm just looking for a simple setup where I can feed
the running script live syslog output and various filitering regex as
different kinds of logs are desired for examination.

Maybe just have the script reread a text file or regex every few
minutes as it runs, and I could put what ever regex I want
there.

I don't really care how the syslog input happens long as it is live or
close to live.

Tail -f of the system logs seems like a pretty clunky non-live way,
involving buffer flushes, and the named-pipe approach has some problems
on opensolaris that I've forgotten the details of. But the script
would have to be portable for linux and opensolaris

Before I start writing my own script....

Can anyone direct me to a basic editable syslog filter script?



--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Harry Putnam [ Sa, 27 Februar 2010 20:04 ] [ ID #2033609 ]
Perl » gmane.comp.lang.perl.beginners » syslog filters

Vorheriges Thema: perl regex vs text editor syntax
Nächstes Thema: Please excuse the NOOB question - but I guess since this is a