in reply to The need for speed

Given what you need to do, I think you may find you're better off separating the log parsing and data analysis phases. Have one program who's sole function is to parse the log files and dump the results into a database, and a second to process the data in that database. (You could alter the system to log directly to a DB rather than a file, but I wouldn't recommend that for reliability reasons)

Doing this has the following advantages:

It'll make your life a lot easier in the long run, and give you access to more sophisticated data analysis tools. Setting up MySQL or Postgres isn't that big a deal--I'd really recommend you give it a shot this way.

Replies are listed 'Best First'.
Re^2: The need for speed
by Aristotle (Chancellor) on Jan 23, 2003 at 22:47 UTC
    And you don't even need to set up Postgres, MySQL or any other real database server - DBD::SQLite is an excellent self contained driver and database, and it's very fast too. See its Perl advent calendar entry for a quick intro. People have reported great success at using it for their log mangling needs.

    Makeshifts last the longest.