Dashboards & Visualizations

How do you display a blank panel?

zeespl
Explorer

if the query returns no result, I want to display a blank panel with no text or value.

Tags (1)
0 Karma

cmerriman
Super Champion

try a depends/rejects with a conditional token to replace the panel with an empty html panel. Here is just a random syntax you can pick apart for the xml.

<row>
    <panel rejects="$blankpanel$">
      <table>
        <title>title here</title>
        <search>
          <query>|makeresults|eval blank=""|fields - blank _time</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
          <progress>
          <condition match="'job.resultCount'=0">
            <set token="blankpanel"></set>
          </condition>
          </progress>
        </search>
        <option name="count">10</option>
        <option name="drilldown">none</option>
        <option name="refresh.display">progressbar</option>
      </table>
    </panel>
    <panel depends="$blankpanel$">
      <html>
        <b>title here</b>
        <br/>
      </html>
    </panel>
  </row>

pitmod
Explorer

@cmerriman works great. Thanks

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...