Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: log file analysis

by bingos (Vicar)
on Dec 22, 2006 at 08:05 UTC ( #591276=note: print w/replies, xml ) Need Help??


in reply to log file analysis

POE::Wheel::FollowTail would be the POE way to follow the end of a file. It even deals with log file rotation.

Replies are listed 'Best First'.
Re^2: log file analysis
by jettero (Monsignor) on Dec 22, 2006 at 13:23 UTC

    FYI, I've been using File::Tail for quite a while and it seems to handle file rotations also. I'm going to try out the POE version though. POE is very cool.

    -Paul

Re^2: log file analysis
by Random_Walk (Prior) on Dec 22, 2006 at 13:33 UTC

    I am using POE::Wheel::FollowTail and it is a great module. Handles log file rotation and truncation for you. The event driven system is ideal for loading various forwarders depending on what is seen in the logfile. It took me about a day to hammer together a state-full file follower that parses the file, forwards alerts and generates average stats from performance metrics in the log. POE rocks.

    Cheers,
    R.

    Pereant, qui ante nos nostra dixerunt!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://591276]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2018-07-18 11:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (390 votes). Check out past polls.

    Notices?