Dashboards & Visualizations

How to achieve each static dropdown value with separate query in same panel?

Abhineet
Loves-to-Learn Everything

We have dropdown field with four static value.

Drop down field value:

1.cloud

2. hana

3. copy2

4. principal

for each dropdown static value have separate query, 

looking to create dashboard with single panel changing dropdown value should change respective search query  output in same panel.

1.cloud -> Query1

2. hana -> Query2

3. copy2 -> Query3

4. principal -> Query4

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Set the label for the drop down as you have in your list and make the value the search you want to use, then just use the token as the search query for the panel.

0 Karma

Abhineet
Loves-to-Learn Everything

Is there any other way, as we are using dropdown value for other action to perform.

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@Abhineet 

You can set another token for search on  change of dropdown.. like below and use this search token in panel..

<change>
     <condition value="cloud">
       <set token="tokSPL"> CLOUD SEARCH</set>
     </condition>
     <condition value="hana">
       <set token="tokSPL"> HANA SEARCH</set>
     </condition>

     <condition value="copy2">
       <set token="tokSPL"> COPY2 SEARCH</set>
     </condition>

     <condition value="principal">
       <set token="tokSPL"> principal SEARCH</set>
     </condition>

   </change>

 

I hope this will help you.

Thanks
KV
If any of my replies help you to solve the problem Or gain knowledge, an upvote would be appreciated.

0 Karma

Abhineet
Loves-to-Learn Everything

Thanks for help...

0 Karma
Get Updates on the Splunk Community!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...