How do I monitor for text patterns in a log file?
See
Message Transformation
.