Lumberjack is a project mainly written in JAVASCRIPT and PHP, it's free.
Log file parser and analyzer
A utility for parsing log files, loading them into MongoDB, and performing advanced analysis. A web interface makes viewing easy.
The BaseLogger command provides a base class that can easily be extended to parse file-based logs.
This was initially developed for ConsumerSearch.com.