Check a running job log file

Is there a method for being able to check a running job log file for a certain file and email alert the user?
We’d like to look for an small increment size in a simulation logfile and if smaller than a certain value, alert the user.
Many thanks for you assistance in advance.

Perhaps a periodic hook on the execution nodes looking at the log files and calling sendmail (or whatever) when necessary