Hi Guys,
Need help on how can i write a unix script which does below
1. Realtime monitoring of huge realtime updating log
2. get a sepecific keyword on log - Do below
I am thinking of reading logs , making a qeueu and holding them until its done
Please share your ideas on how we can best achive the above task
Need help on how can i write a unix script which does below
1. Realtime monitoring of huge realtime updating log
2. get a sepecific keyword on log - Do below
save a particular string it will be a number in that log line eg. new mas:400 recieved : we keep 400
search the next line of logs which will have mas:400 and look for more keywords
search that keyword in a database and forget 400 if the keyword is not in DB
finally we get mas:400 stored:#1234
we forget 400 now and proceed with next
3. the log will keep getting new numbers and we need to make sure we check all of them and notify if there is a errorI am thinking of reading logs , making a qeueu and holding them until its done
Please share your ideas on how we can best achive the above task