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
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!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...