How do I monitor for text patterns in a log file?
See
Message Handler for Traps and Logs
.