in reply to Parsing a specific section of a log file

File::Tail will help with that. You can write a continuously running process which monitors the log and reads new entries at an interval you select.

Just push the timestamp from success records onto an array, splice out all the timestamps over half an hour old, and warn if the array is empty.

As with any continuously running service, it would be a good idea to make a Daemon of it.

After Compline,
Zaxo

  • Comment on Re: Parsing a specific section of a log file

Replies are listed 'Best First'.
Re^2: Parsing a specific section of a log file
by izut (Chaplain) on Mar 01, 2007 at 11:29 UTC

    Another alternative is POE::Wheel::FollowTail. I think it is cleaner for that, and uses the POE framework for getting your job done. For daemonizing it, you can use POE::Component::Daemon.

    Igor 'izut' Sutton
    your code, your rules.