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!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...