Dashboards & Visualizations

How to auto collapse panel in dashboard

splunkreal
Motivator

Hello guys,

how do you auto collapse panel if no result is found (see attached)?

Thanks.alt text

* If this helps, please upvote or accept solution 🙂 *
0 Karma
1 Solution

cmerriman
Super Champion

try adding this in the search node in the simple xml of your panel. use depends="$hide$" in the panel node:

<progress>
     <condition match="'job.resultCount' > 0">
          <set token="hide">true</set>
     </condition>
</progress>

View solution in original post

cmerriman
Super Champion

try adding this in the search node in the simple xml of your panel. use depends="$hide$" in the panel node:

<progress>
     <condition match="'job.resultCount' > 0">
          <set token="hide">true</set>
     </condition>
</progress>
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...