Dashboards & Visualizations

Drill down

Muthu_Vinith
Path Finder

Hi all, I’m a Splunk beginner, I want to show and hide corresponding pie charts using check box. Can someone please guide me on how to achieve this? Any help or example queries would be greatly appreciated. Thank You!

Labels (2)
0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@Muthu_Vinith 

 

Are you looking like this? 

XML

<form version="1.1" theme="dark">
  <label>Chechbox</label>
  <fieldset submitButton="false">
    <input type="checkbox" token="checkbox_a">
      <label></label>
      <choice value="panel_a">Panel A</choice>
      <delimiter> </delimiter>
      <change>
        <condition match="$checkbox_a$==&quot;panel_a&quot;" >
          <set token="tkn_panel_a">1</set>
        </condition>
        <condition>
          <unset token="tkn_panel_a"></unset>
        </condition>
      </change>
    </input>
    <input type="checkbox" token="checkbox_b">
      <label></label>
      <choice value="panel_b">Panel B</choice>
      <delimiter> </delimiter>
      <change>
        <condition match="$checkbox_b$==&quot;panel_b&quot;" >
          <set token="tkn_panel_b">1</set>
        </condition>
        <condition>
          <unset token="tkn_panel_b"></unset>
        </condition>
      </change>
    </input>
  </fieldset>
  <row>
    <panel depends="$tkn_panel_a$">
      <title>Panel One $checkbox_a$</title>
      <chart>
        <search>
          <query>| makeresults | eval a=100</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="charting.chart">pie</option>
        <option name="charting.drilldown">none</option>
        <option name="refresh.display">progressbar</option>
      </chart>
    </panel>
     <panel depends="$tkn_panel_b$">
      <title>Panel Two $checkbox_b$</title>
      <chart>
        <search>
          <query>| makeresults | eval a=100</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="charting.chart">pie</option>
        <option name="charting.drilldown">none</option>
        <option name="refresh.display">progressbar</option>
      </chart>
    </panel>
  </row>
</form>

 

Screenshot 2024-02-14 at 11.10.58 AM.png

 

 

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

Muthu_Vinith
Path Finder

Thanks @kamlesh_vaghela 

0 Karma
Get Updates on the Splunk Community!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...