Splunk Search

How to get latest SID

gk33
New Member

I am using splunk-sdk in my python code, I want to get latest sid of saved report each time it is refreshed.

I tried using saved_search.dispatch() but the sid which I get in output doesn't retrieves result in python throws URLencoded error.

Can someone help on this?

Labels (3)
Tags (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

The dispatch endpoint launches a new search so that will not get what you're looking for.  Try the search/v2/jobs/export endpoint (https://docs.splunk.com/Documentation/Splunk/9.4.0/RESTREF/RESTsearch#search.2Fv2.2Fjobs.2Fexport)

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

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...