Splunk Enterprise

SavedSearch API - Update my splunk report

analysthok
Loves-to-Learn Lots

 

I need an API call to run a Splunk report that has already been saved and add the most recent values to the report.

I do not wish to wait until the cron time is set.

 

I attempted to use the "dispatch.now" function in this api "saved/searches/name/dispatch". It started a task and executed the search; I could see the results in finished jobs, but my report was not updating with the most recent information.

 

I also need an API to check the status of the executed query to see if it has finished or is still running.

The response from the API call instructs me to look for the parameter isdone=true, however I am unable to depend on the results because the jobs are still running when I manually check their status.

 

Labels (1)
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...