Knowledge Management

How to retrieve distinct field values from KV Store using REST API?

rngfox1
New Member

Hi,

I have a collection in the KV Store that contains several 10,000's of documents. Each document has a specific field that is present in each of them - sometimes values are the same, sometimes different. I need to retrieve a list of all possible values by REST API.

Talking in SPL I would like to have this result: 

|inputlookup mylookup |stats values(myfield)

(And I don't want to use the search endpoints a query a search job by REST API that does the SPL above : )  )

Does anyone know if this is possible and how to do it?

BR

RngFox

Labels (1)
Tags (2)
0 Karma
Get Updates on the Splunk Community!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...