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!

Splunk Observability Cloud's AI Assistant in Action Series: Auditing Compliance and ...

This is the third post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...