Splunk Cloud Platform

How to get savedsearch list in Splunk Cloud

skasagawa
Explorer

I know I can use the "rest" command as in the link below to get the list of savedsearches.

https://community.splunk.com/t5/Getting-Data-In/Is-there-any-way-to-list-all-the-saved-searches-in-S...

Since the "rest" command cannot be used in Splunk Cloud, I would like an SPL that can be listed without using that command.

It seems that the "rest" command can also be used if i contact Cloud Support, but I don't want to use that command as much as possible!

Best Regards.

Labels (1)
0 Karma
1 Solution

bowesmana
SplunkTrust
SplunkTrust

What makes you think you can't use rest commands in SPL in Splunk Cloud?

Using the REST API SDK is different to using "| rest" commands in SPL

The "rest" commands only support read-only functions, but listing saved searches, as in that post, is possible.

 

View solution in original post

0 Karma

bowesmana
SplunkTrust
SplunkTrust

What makes you think you can't use rest commands in SPL in Splunk Cloud?

Using the REST API SDK is different to using "| rest" commands in SPL

The "rest" commands only support read-only functions, but listing saved searches, as in that post, is possible.

 

0 Karma

skasagawa
Explorer

I was mistaken.
I was able to solve it with the query given in the link.
thank you for your help

0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...