Monitor logs for exception and if exception come then sent an email

Hi Folks,

please advise , I have logs generated on unix machine at location /ops/opt/aaa/bvg.log , now sometimes there come exception in these logs also, so I want to write such a script such that it should continuously monitor these logs and whenever any exception comes that is it try to find the world exception and when ever any exception comes it should email to the team members , please advise how to proceed :confused:

What code have you tried so far?

And this looks very much like bumping up posts:

grep -i "exception" /ops/opt/aaa/bvg.log | mail -s "Exception occured" email@address.com

You can start from here.
Put in a script, add more logic to it then put it in a cron job to run every minute and you are done!