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.
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...