Splunk Search

How to disable or enable panels based on drop down value in the dashboard?

ghostrider
Path Finder

I have a drop/drill down with 3 values namely:

All,A,B

And there are 2 panels, let's say 1 and 2 which take input in the form of tokenfilter from above drop down. 1 should be displayed and 2 hidden when A is selected. 2 should be displayed and 1 hidden when B is selected. And lastly when All is selected both the panels should be displayed.  Is there a way to achieve this in the panels or dashboard?

 

Any pointers would be helpful on the same.

Tags (3)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

In the change handler of the dropdown, set and unset tokens for the whether the panel should be displayed, e.g. displayA and displayB, then use the depends attribute on the panels

<panel depends="$displayA$">
0 Karma

ghostrider
Path Finder

Thanks!! but I dont see any handler in the dropdown settings. Only options I see are below.  I am referring below token in the search queries of the 2 panels. Where do I need to define the "displayA" and "displayB"? 

 

ghostrider_0-1665687691402.png

ghostrider_1-1665687781399.png

 

 

 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Currently only available in SimpleXML dashboards, not Studio

0 Karma

ghostrider
Path Finder

Ok. Any idea on how to do it in Studio?

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