log2mail sends an email to a specified address if a pattern in a logfile is matched. It runs as a daemon and is very configurable.