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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...