Hello,
i have some scheduled searches. Some run every 5 minutes, some 15 minutes some hourly etc.
Some of those searches are there to generate a summary index, a few other to exportcsv to feed it into another tool regularly.
if there is an outage of the search head (even with two search heads or SH pooling) some jobs might be skipped or missed as they won't rerun. This will result in a not complete dataset.
In the first step, i'll would need a Report which shows me, based on the actual schedule which search was skipped.
index=_internal source=*scheduler.log | eval sched = strftime(scheduled_time, "%Y-%m-%d %H:%M:%S") | search savedsearch_name="Project Honey Pot - Threatscore AVG Last 4 Hours" NOT continued | table sched status savedsearch_name
Report Like:
User Activity Search
- Last RUN | scheduled every 5 Minutes | STATUS=Completed
- Last RUN - 5 minutes | STATUS=Completed
- Last RUN -10 Minutes | STATUS=Completed
- Last RUN -15 Minutes | Status=Not Executed
- Last RUN -20 Minutes | Status-Completed
and this for each scheduled search dynamically with the scheduled every 5 minutes.
The above example would show a potential Restart of the SH 15 minutes ago. And then i can manually investigate and re-run the export for this specific timeframe to add the data again... or it can review the last 10 successfull runs - subtract the times and then automatically detect that it is running all 5 minutes.
Thanks a lot
Matthias
... View more