Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Reading constantly generated log files: Suggestions invited

by Khen1950fx (Canon)
on Nov 08, 2013 at 20:19 UTC ( #1061766=note: print w/ replies, xml ) Need Help??


in reply to Reading constantly generated log files: Suggestions invited

Give Logfile::Tail a spin:

#!/usr/bin/perl use strict; use warnings; use Logfile::Tail (); use Data::Dumper::Concise; my $file = new Logfile::Tail('/var/log/messages', {autocommit => 1 }, ); my $line = $file->getline(); $file->commit(); print Dumper( $line );


Comment on Re: Reading constantly generated log files: Suggestions invited
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1061766]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2014-12-28 21:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (183 votes), past polls