Logsurfer is a program that works on single textlines from
a logfile (or from standard input). It compares each  line
against  regular  expressions of a set of "rules" and per-
forms certain actions that are defined for this match.

WWW: http://www.cert.dfn.de/eng/logsurf/