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!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

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 ...