in reply to data mine a firewall log
I'd point you toward a reference like "Perl for System Administration" which has a chapter dedicated to log analysis. And loook in CPAN.