I am looking for a way to receive an e-mail notification when a particular string appears in syslog.The script has to be running at all times to watch out for a few strings (for example: error; locked out; denied). If a new syslog entry contains any of these strings, it will send out an e-mail with the string(s) that triggered the mail in the subject.I guess this can be done in bash shell using something along the lines:tail -f /var/log/syslog | egrep 'error|locked out|denied'  ..... -> mailxBut my bash skills are such that I really don't know how to put this together.
Receive an e-mail when a string appear in a syslog entry
scripting;email;syslog