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!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...