I use nagios to monitor several Unix machines and there system log files. The plugin used is check_log.pl. This plugin searches for a keyword that I define. If found, it reports and error and displays the line in the log file that contains that word(or words).
Nogios doesn't store it's log files in a DB as far as I know.