Getting Data In

Drop-down

Khuzair81
Path Finder

DROPDOWN - I want to create one dashboard. While creating Country Dropdown I want only those countries in dropdown which my team support(US, UK, AUSTRALIA ETC.) but we are getting data for All countries.

Query - index=* country="US"  OR country="UK" OR country="AUSTRALIA" | table country | dedup country 

The above Query give me the perfect result in dropdown.

But I want to add one more option "All" in the dropdown which gives me the above mentioned country data only. Is there anyway?

Labels (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Khuzair81,

as @richgalloway, said, you have to add a static option ("All") not associating to it "*" as usual (beacuse in this way you take all the countries) but the list of the wanted countries, e.g.:

country="US"  OR country="UK" OR country="AUSTRALIA"

Ciao.

Giuseppe

0 Karma

richgalloway
SplunkTrust
SplunkTrust

A dashboard input can mix static and dynamic choices.  The dynamic choices are those produced by the query shown.  Add a static choice called "All" and give it a value ("*" is common) that works with your main query.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Data Management Digest – May 2026

Welcome to the May 2026 edition of Data Management Digest!   As your trusted partner in data innovation, the ...

Index This | What is feather-light but cannot be held long?

May 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

.conf26 Registration is Live: Secure Your Early Bird Pass Now

  Lock in Your Spot: Registration Open for .conf26 in Denver Hello Splunkers, I have exciting news! Your ...