All Apps and Add-ons

Toggle visibility of 2nd panel by clicking on first panel within dashboard

spammenot66
Contributor

The code below has the drilldown setup to display panel4 when i click on panel3, and will only hide panel4 if i click on a link from panel4. How do I change it so that when i click on panel3 it will either show or hide panel4 depending on the state of panel4. For example if i click on panel3 and panel 4 is currently displaying, it will hide. If i click on panel3 again, it should now display the hidden panel4.

<row>
    <panel>
      <title>Panel 3  </title>
      <single>
        <search>
          <query>|gentimes start=-1 | eval temp="Panel 3" | table temp</query>
          <earliest>0</earliest>
          <latest></latest>
          <sampleRatio>1</sampleRatio>
        </search>
        <option name="drilldown">all</option>
        <drilldown>
          <condition match="boolPanel4 = true">           
                <set token="boolPanel4">true</set>
          </condition>
          <condition>               
                <unset token="boolPanel4"></unset>                
          </condition>            

        </drilldown>
      </single>
    </panel>
    <panel rejects="$boolPanel4$">
      <title>Panel 4</title>
      <single>
        <search>
          <query>|gentimes start=-1 | eval temp="Panel 4" | table temp</query>
          <earliest>0</earliest>
          <latest></latest>
          <sampleRatio>1</sampleRatio>
        </search>
        <option name="drilldown">all</option>
        <drilldown>          
          <set token="boolPanel4">true</set>
        </drilldown>
      </single>
    </panel>
  </row>

Rmc06010
Explorer

Disregard my comment. This answer worked for me.

0 Karma

Rmc06010
Explorer

Also looking to implement this functionality. As there are no answers yet I am leaning toward this being impossible. Can someone at least confirm whether this can be done or not?

Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...