Splunk Search

Multiple independent dropdowns in a Dashboard

behymejt2012
Path Finder

Creating a dashboard with 3 independent dropdowns (country,state,city). The ideas is for the user to select or more of the dropdowns and based on the selection it will populate a table.

For example, if the user selects only the country dropdown (lets say United States) then the other 2 dropdowns will default to selecting all.

When creating the search for the table and passing the value for the country is simple, my question is for the other two fields, is it possible to do the following or something similar:

| where country ="United States", state=ALL, city=ALL

Any help or guidance would be appreciated!!

Tags (2)
0 Karma

gkanapathy
Splunk Employee
Splunk Employee

you can either set the default value to "*", or you can have the input/dropdown use a prefix to the field value. if there is no field value selected at all, then the prefix will also be omitted, so the term will not even exist in your search template.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...