Splunk Search

How can I get a list of all saved searches from all apps using the REST command?

masonmorales
Influencer

So, I know I can get a list of saved searches by doing:

| rest /servicesNS/-/MYAPP/saved/searches | table title 

However, I want to list all saved searches from all Apps (which need to be dynamically discovered). How can I accomplish this?

1 Solution

harsmarvania57
Ultra Champion

Please use | rest /servicesNS/-/-/saved/searches splunk_server=local

Thanks,
Harshil

View solution in original post

harsmarvania57
Ultra Champion

Please use | rest /servicesNS/-/-/saved/searches splunk_server=local

Thanks,
Harshil

masonmorales
Influencer

This is what I needed. Thanks!

0 Karma

Runals
Motivator

I was going to suggest the same. I might suggest looking into the following app. It is a change management/tracker for several Splunk configuration files to include saved searches.

https://splunkbase.splunk.com/app/2627/

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...