Script monitor

Script monitor

Hi, 
I've never worked with script, I need to perform monitoring a log file of my application and if it finds an X message it returns me an alarm? Could someone help me in this script.

                New to ADSelfService Plus?