I have a saved search pushed to my splunk app.
The search only gives me partial events searched (9k events ), where as when the saved search it in "search and reporting" app i get the complete results. (6000k events)
My savedsearch.conf inside my app directory "/opt/splunk/etc/apps/My_APP/local/savedsearches.conf"
cron_schedule = 0 0 * * *
dispatch.earliest_time = -7y@y
dispatch.index_earliest = -7y@y
dispatch.index_latest = now
enableSched = 1
run_on_startup = 1
dispatch.max_count = 500000000
search = | pivot Authentication Authentication count(Authentication) AS totalcount SPLITROW sourcetype AS sourcetype SORT 100 sourcetype ROWSUMMARY 0 COLSUMMARY 0 SHOWOTHER 1 | eval modelname="Authentication"
My splunk app - savedsearch
savedsearch in search app
... View more
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.
... View more