Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

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 );

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1061766]
[holli]: Lidl only sells plastic
[Corion]: holli: Oooh, a twister top - so yes, that's a worse state of mind than it sounded ;)
[holli]: and since I outed myself anyway as a horrible person, to top it off, the bottle contains beer. alcohol free beer
[Discipulus]: nowaday such beers have also a good taste
[Corion]: holli: Heh - if you consider alcohol free beer as a not-so-sweet lemonade, you're not that bad off ;)
[holli]: actually, that's exactly how i look at it.
[Discipulus]: leaving alcool is forever. well done bro'

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (15)
As of 2017-09-25 13:01 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (280 votes). Check out past polls.