Monitoring Splunk

To use 2 panels with the Panel Depends?

Real_captain
Path Finder

Hi 
Is it possible to use same input with the 2 different panels : 

It works fine with the 1 panel as below : 

<panel depends= "$tokShowPanelB$ ">


But i want to use the same input with the panelC too. But below command doesnot works: 

<panel depends= "$tokShowPanelB$ ,  $tokShowPanelC$">


Can someone please help. 

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

OK got it. The answer is no, you can't display the same input panel in two different rows of the dashboard.

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

"doesnot works" (sic) is not very informative. What exactly have you tried, what are you trying to achieve, and what are you getting that does not match your expectations?

0 Karma

Real_captain
Path Finder

HI @ITWhisperer 
I've an input which i want to use in 2 different panels. 
Example :  There are 3 panels in my dashboard : 

<label>Mode Selection</label>
<choice value="panelA">panelA</choice>
<choice value="panelB">panelB</choice>
<choice value="panelC">panelC</choice> 



I want to show the Input in panelb and panelC and not in panel A .
I have used below code to solve it. I want to know if it is possible to write the input type code only once and use it with multiple panels (panelb and panelC). 

<row>
<panel depends= "$tokShowPanelB$">
<input type="radio" token="Devib" searchWhenChanged="true">
<label>Deviation</label>
<choice value="">ALL</choice>
<choice value="| where Dev = 0">Dev = 0</choice>
<choice value="| where Dev &gt; 150"  > Dev  > 150 </choice>
<default></default>
</input>
</panel>
</row>

<row>
<panel depends= "$tokShowPanelC$">
<input type="radio" token="Devib" searchWhenChanged="true">
<label>Deviation</label>
<choice value="">ALL</choice>
<choice value="| where Dev = 0">Dev = 0</choice>
<choice value="| where Dev &gt; 150"  > Dev  > 150 </choice>
<default></default>
</input>
</panel>
</row>
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

It is not clear what you are trying to achieve here, both your radio button inputs are identical, you have shown where tokShowPanelB and tokShowPanelC are set, nor where you are using the Devib token. Please clarify your requirement.

0 Karma

Real_captain
Path Finder

HI @ITWhisperer 

Below is the requirement: 

I want to use an input (radio button) in 2 panels and there are total 3 panels in my dashboard. 

Is it possible to make an input (radio button) visible in 2 panels and not visible in the 3rd panel. 
I've used below code to achieve it but I've to write the same code 2 times. 

I want to use the show the Deviation input in the PanelB and PanelC but it should not be visible in panelA.

 

<label>Mode Selection</label>
<choice value="panelA">panelA</choice>
<choice value="panelB">panelB</choice>
<choice value="panelC">panelC</choice> 

 

<row>
<panel depends= "$tokShowPanelB$">
<input type="radio" token="Devib" searchWhenChanged="true">
<label>Deviation</label>
<choice value="">ALL</choice>
<choice value="| where Dev = 0">Dev = 0</choice>
<choice value="| where Dev &gt; 150"  > Dev  > 150 </choice>
<default></default>
</input>
</panel>
</row>

<row>
<panel depends= "$tokShowPanelC$">
<input type="radio" token="Devib" searchWhenChanged="true">
<label>Deviation</label>
<choice value="">ALL</choice>
<choice value="| where Dev = 0">Dev = 0</choice>
<choice value="| where Dev &gt; 150"  > Dev  > 150 </choice>
<default></default>
</input>
</panel>
</row>
Tags (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

OK got it. The answer is no, you can't display the same input panel in two different rows of the dashboard.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

What Is Splunk? Here’s What You Can Do with Splunk

Hey Splunk Community, we know you know Splunk. You likely leverage its unparalleled ability to ingest, index, ...

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...