Reporting

CLI or Curl reload of saved searches

morawi5
Explorer

I've tried every single thing under the sun to reload my saved searches via CLI or curl - It looks as though the endpoint claims it reloaded them, but nothing changes to the searches.

Debug/refresh works properly in the UI and it reloads fine, but trying to target that specific endpoint via the web does not reload them and trying to do curl via CLI does not reload them

curl -k -u admin:changeme -X POST https://localhost:8089/servicesNS/-/-/admin/_reload
curl -k -u admin:changeme -X POST https://localhost:8089/servicesNS/-/-/admin/savedsearch/_reload

https://localhost:8089/servicesNS/admin/search/admin/savedsearch/_reload

The above endpoints show that something has been reloaded, but nothing changes

Ideally I would like to do this via CLI so its automated with the use case I plan to do

Labels (1)
0 Karma

yuanliu
SplunkTrust
SplunkTrust

I imagine that the "automation" part has something to do with an action such as outputlookup?  I am curious about how reload interacts, too.

For mere automation, you can simply include the entire search in your API call. 

0 Karma
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...