in reply to Parsing tomcat access log

Have you considered looking at what awstats has to offer? It's written in Perl.