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!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

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

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...