Reporting

Using Splunk REST to list "saved searches" only returns a limited set of results

dibblel
Engager

The Splunk API appears to be limiting the number of "saved searches" returned. I am running the query with our admin account so I do not believe it is a permissions issue. However, I did notice if I adjust a query to GLOBAL it appears to show up in the list.

Is there not a way to show ALL saved searches?

Example query:

curl -k -u admin:$PASS "splunk:8089/servicesNS/admin/search/saved/searches?count=100"

curl -k -u admin:$PASS "splunk:8089/services/saved/searches?count=100"

Thanks!

Tags (3)

dibblel
Engager

I found the answer to my question:

"splunk:8089/servicesNS/-/-/saved/searches?count=100"

I do not know why this is not included in the documentation as it clearly states, "List all saved searched on this Splunk instance" for the below command.

curl -k -u admin:pass "localhost:8089/services/saved/searches"

Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...