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!

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