Okay. team, I need your assistance.
I have to monitor a log file on a server. The log file name is XXX.HH - where HH is the current hour in 24 hour format. So, at the start of the night, the log file is named XXX.00, and between 1 am and 1:59:59 it is XXX.01, and so forth.
What I need to do is to read this file and send alerts if a regular expression is found. Any idea how to do this. I am stumped.
This must be easy but...
I have to monitor a log file on a server. The log file name is XXX.HH - where HH is the current hour in 24 hour format. So, at the start of the night, the log file is named XXX.00, and between 1 am and 1:59:59 it is XXX.01, and so forth.
What I need to do is to read this file and send alerts if a regular expression is found. Any idea how to do this. I am stumped.
This must be easy but...