Splunk Dev

top 10 values of fields and percentage using sdk (Similar to fields on UI)

pratik151
New Member

In the splunk UI on the left hand side after the query search you can find the fields and the top 10 values, (their percentage and count) for all the fields.

I would like to use this programatically, Is there any way I can get it using splunk sdk. Or any query that would give the same result.

Thanks in advance.

Labels (1)
0 Karma

woodcock
Esteemed Legend

It leverages the top (and rare) command.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

It does? 😮

0 Karma

woodcock
Esteemed Legend
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

The field sidebar in the UI doesn't run infinitely many top commands.

0 Karma

woodcock
Esteemed Legend

True enough.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust
0 Karma
Get Updates on the Splunk Community!

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco + Splunk! We’ve ...