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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...