Getting Data In

How to list all the KV stores /collections via SPL Splunk Search?

zacksoft_wf
Contributor

I want to list all the Kv store collections through SPL. something like below...

| rest /servicesNS/-/- .......

unable to figure out the right rest command and the correct fields .

Would appreciate any guidance..

Labels (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Perhaps this REST command will help

| rest /servicesNS/-/-/data/transforms/lookups splunk_server=local 
| search type=kvstore
---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Perhaps this REST command will help

| rest /servicesNS/-/-/data/transforms/lookups splunk_server=local 
| search type=kvstore
---
If this reply helps you, Karma would be appreciated.

PickleRick
SplunkTrust
SplunkTrust

Do you want to list them as in "list their metadata" or you want to list their contents?

Anyway, the REST endpoint to see which connections you have defined is https://docs.splunk.com/Documentation/Splunk/9.0.2/RESTREF/RESTkvstore#storage.2Fcollections.2Fconfi...

Other kvstore-related endpoints are described in the same document. You can't query (about) multiple collections in one call so if you want to do a batch-sweep over multiple collections you'd have to use map (ugh!).

0 Karma

zacksoft_wf
Contributor

want to list their metadata.

0 Karma
Get Updates on the Splunk Community!

Cloud Platform & Enterprise: Classic Dashboard Export Feature Deprecation

As of Splunk Cloud Platform 9.3.2408 and Splunk Enterprise 9.4, classic dashboard export features are now ...

Explore the Latest Educational Offerings from Splunk (November Releases)

At Splunk Education, we are committed to providing a robust learning experience for all users, regardless of ...

New This Month in Splunk Observability Cloud - Metrics Usage Analytics, Enhanced K8s ...

The latest enhancements across the Splunk Observability portfolio deliver greater flexibility, better data and ...