log_analysis is a log file analysis engine that extracts relevant data for any of the recognised log messages and produces a summary that is much easier to read. It can be configured to recognize entirely new log types. log_analysis natively understands about 100 different kinds of syslog messages, as well as sulog and wtmp messages for Linux, Solaris, and OpenBSD. It also has optional continuous monitoring capabilities, with both text and GUI modes.
> Just for educational purposes, here are
> Perl translations of the example
You can reduce the example in perl to the following one liner:
perl -pe ""
Ie. perl -pe "" /etc/resolv.conf /etc/lilo.conf
It even does error checking. ;)