in reply to logfile parsing

First off, what program is generating this logfile? Someone may have already written a parser for this type of logfile if it isn't a custom rolled application. Try searching CPAN for the module.

If it is a custom rolled app, then I would suggest writing an OO module that takes each line as a separate object, parses it and dumps it off to a function to handle each class/category of line and go from there. Aggregating the stats can become another part of the module.

Replies are listed 'Best First'.
Re^2: logfile parsing
by phoneguy (Novice) on Oct 26, 2006 at 16:28 UTC
    The program is a PBX Application that was written in-house, but, the person who wrote it is no longer around, and I'm not a perl <classification>, just someone who wanted to try it out and get my feet wet. Writing an OO module is probably a bit above and beyond the scope of my skillset.