How events are indexed based on time:
When an event is indexed it has two fields called "_time" & "_indextime" .
"_time" is the event time itself.
"_indextime" is when the Splunk indexes the event.
How Scheduled Searches works:
In Splunk, the Saved Searches are executed from the events based on the "_time" field i.e. the exact time of event occurrence.
For example: The Search "Threat - Alert Endpoint: Endpoint Threat Detected - Rule" is configured and scheduled to run on the 5th minute of every hour.
|
Time Bucket |
Search Schedule Time |
Events Time Range based on "_time" field |
|---|---|---|
|
5th |
5:05 PM |
4:05 PM to 5:05 PM |
|
6th |
6:05 PM |
5:05 PM to 6:05 PM |
|
7th |
7:05 PM |
6:05 PM to 7:05 PM |
Endpoint Incident happened at 5:41 PM (_time) and got indexed at 6:11 PM (_indextime).
Expected Scenario:
Events with a timestamp of 5:41 PM (_time) should be indexed at 5:41 PM (_indextime)
A scheduled search that runs at 6:05 PM would have this event and triggered notable(s) in the Incident Review.
Current Scenario:
An event that happened at 5:41 PM got indexed at 6:11 PM.
There's a scheduled search at 6:05 PM, due to the delay, this event won't be part of it, and it won't trigger any notables.
If there was no delay, the event would be part of the 6th Time Bucket as expected.
Due to the delay, it is now in the 7th Time Bucket, and the search doesn't include it because it is supposed to look for events with "_time" from 6:05 PM to 7:05 PM.
In simple terms, an event is indexed later than when it happened, so it is missed by a scheduled search to trigger notable from a specific time range.
The following SPL query can be used to validate the time difference between the executed searches:
| index=_internal host=* source=*scheduler.log* savedsearch_name="Threat - Alert Endpoint: Endpoint Threat Detected - Rule"
| stats values(result_count) values(scheduled_time) values(dispatch_time) by _time
| rename values(*) as *
| eval scheduled_time=strftime(scheduled_time,"%Y-%m-%d %H:%M:%S")
| eval dispatch_time=strftime(dispatch_time,"%Y-%m-%d %H:%M:%S")
Check for discrepancies between (_time) & (_indextime) for the event.
Workaround:
To prevent this scenario, Increase the Time Range for the Search and the execution cron schedule.
For example:
The cron schedule of the Correlation Search set to occur every two hours instead of every hour.
The time range for the last hour would be altered to include the last two hours of data.
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
29-Sep-2026
|
Initial Release |