Dashboards & Visualizations

Option in Checkbox is ticked by default but panel in dashboard is still hidden whenever dashboard open

jmmontejo
Explorer

I have a dashboard that show/hide panel whenever option/s in checkbox is ticked, which is already working. My problem is whenever I select the option as default value, the panel is still hidden whenever I open the dashboard. Any idea on this? or am I missing something

 

Heres some part of my xml.

<input type="checkbox" token="check">
<label>Category Type</label>
<choice value="db_gc_wait">DB GC Waits</choice>
<choice value="concurrent_manager">Concurrent Managers</choice>
<choice value="blocking_session">Blocking Session</choice>
<choice value="longrunning_job">Long Running Jobs</choice>
<choice value="crm_top_request">CRM Top Requests</choice>
<choice value="workflow_mailer">Workflow Mailer</choice>
<change>
<condition match="$check$ = &quot;db_gc_wait&quot;">
<set token="show_db_gc_wait">1</set>
<unset token="show_concurrent_manager"></unset>
<unset token="show_blocking_session"></unset>
<unset token="show_longrunning_job"></unset>
<unset token="show_crm_top_request"></unset>
<unset token="show_workflow_mailer"></unset>
</condition>
...

<condition match="$check$ = &quot;db_gc_wait concurrent_manager blocking_session longrunning_job crm_top_request workflow_mailer&quot;">
<set token="show_db_gc_wait">1</set>
<set token="show_concurrent_manager">1</set>
<set token="show_blocking_session">1</set>
<set token="show_longrunning_job">1</set>
<set token="show_crm_top_request">1</set>
<set token="show_workflow_mailer">1</set>
</condition>
<!-- Unset all tokens -->
<condition>
<unset token="show_db_gc_wait"></unset>
<unset token="show_concurrent_manager"></unset>
<unset token="show_blocking_session"></unset>
<unset token="show_longrunning_job"></unset>
<unset token="show_crm_top_request"></unset>
<unset token="show_workflow_mailer"></unset>
</condition>
</change>

...

<row>
<panel depends="$show_db_gc_wait$">
<table>
<title>Database GC Waits</title>
<search>
<query> MY QUERY</query>
<earliest>$time_tok.earliest$</earliest>
<latest>$time_tok.latest$</latest>
</search>
<option name="drilldown">cell</option>
</table>
</panel>
</row>

Labels (4)
0 Karma

meetmshah
SplunkTrust
SplunkTrust

Hello @jmmontejo, I am unable to run the Dashboard in Splunk. Can you please paste the full XML?

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!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...