Check keyword existence in logfile

Check keyword existence in logfile - if a particular keyword is not present then raise the alert.

This Bash script will alert you if a particular keyword is not found into the textfile/logfile. a chron job will run and insert data into log file every 5 mins and then we read the file and if a particular keyword is not found then we alert on the same.

You need to use appropriate creds to run the script. we have removed the file from the location after every poll which will allow cron job to create new file for us to poll everytime. There is no overwrite of the data in this scenario. 

Note: we aren't able to utilize the perl logfile parser in our case so we went ahead with custom script way.