weismat has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I want to monitor rotating log files under Solaris. I have looked at various Perl modules and I am wondering which module would be suited best for this task. The logfile which I want to monitor grows about 500-800 lines per second in average - thus performance is also important. Thanks in advance!

Replies are listed 'Best First'.
Re: Monitoring rotating logfiles
by McDarren (Abbot) on Oct 18, 2007 at 12:52 UTC
    File::Tail is the first thing that comes to mind.
    As far as I am aware, it manages okay with rotating logfiles.
    Can't really comment on performance, but you could suck it and see.

    Cheers,
    Darren :)

Re: Monitoring rotating logfiles
by oha (Friar) on Oct 18, 2007 at 13:10 UTC
    not perl related, but if the log you must monitor are created by syslog, you can open a fifo and instruct syslog to write to it too. (Note that the fifo must exists before syslog starts)

    Oha