in reply to Re: Best method to monitor active syslog files?
in thread Best method to monitor active syslog files?
This code returns an error " No such file or directory at ./logfilter.pl line 10".#!/usr/bin/perl use strict; use warnings; use Parse::Syslog; my ($parser, $sl); while (<>){ $parser = Parse::Syslog->new($_); while($sl = $parser->next) { print "here\n"; print qq[ program $sl->{program} with pid $sl->{pid} on host $sl->{host} said $sl->{text} at $sl->{timestamp} ]; } }
Neil Watson
watson-wilson.ca
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Best method to monitor active syslog files?
by bowei_99 (Friar) on Feb 08, 2006 at 21:16 UTC |