Splunk Enterprise Security

Why is notable Macro not returning results in realtime searches via search API?

ismailawan
Engager

We use the splunk search endpoint to get notable events using the search endpoint
services/search/jobs

search=search `notable`
earliest_time=(currentTime - 2min)
latest_time=(currentTime)
adhoc_search_level=smart

When search is completed
services/search/jobs/<sid>
dispatchState = DONE

We get results
services/search/jobs/<sid>/results

We don't get all the results.

But when we make the same search with same time ranges around 10 to 15 mins later, we get the results which we missed in the realtime search.

Why do we get the issue and how do we resolve the issue ?

Labels (1)
Tags (3)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

It's possible the data takes more than 2 minutes to be indexed.  Try changing earliest_time to -4 minutes

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...