Tomcat Monitoring log file

view full story

http://www.unix.com – Hi, I ned to monitor the tomcat log file called "catalina.out" for "OutOfMemory" ,"java.sql.SQLException" and "Error" error. the script should monitor this file (catalina.out) and send us the mail as soon as it finds the string "Out of memory" or "java.sql.SQLException" or "Error" in the file. can anyone suggest me which is the best way to do this? Thanks in advance (HowTos)