Hi all,
We're using splunk to monitor our flight systems. We want to fire an alert off to the person on call when a result returns any events for a give query. This will trigger a manual action where search and rescue is contacted by our on call person, and a rescue effort will begin. However, I can't simply execute my query for the last "X" time. I need to be able to cover all timespans, included an unexpected downtime of splunk. I think I need to be able to store when scheduled job was last executed and execute a query that covers the delta between my last executed time and the current time. I'm assuming this data is stored in some internal index, how could I get to it in my query? Here is an example of what I'm currently doing at a 5 minute interval.
current search:
source="C:\\logs\\AlertMonitor.log" "TIER TWO ALERT GENERATED"
Rather than the time always at -5m, I'd like to search from -(currentTime-LastExecuted) and run the job every 5 minutes. Is this possible?
Thanks,
Todd