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
Get Updates on the Splunk Community!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...