Dashboards & Visualizations

how to show "Waiting for data" in my html panel table while the base search loads

Nadhiyaa
Path Finder

how to show "Waiting for data" in my html panel table while the base search loads

Tags (1)
0 Karma

renjith_nair
Legend

@Nadhiyaa ,

Try this

<dashboard>
  <search id="base_search_id">
    <query>index=_internal earliest=-30d|stats count by sourcetype,source</query>
    <done>
      <set token="base_loaded">true</set>
    </done>
  </search>
  <row rejects="$base_loaded$">
    <panel>
      <html>
        <h1>Waiting for data ..........................</h1>
      </html>
    </panel>
  </row>
  <row>
    <panel  depends="$base_loaded$">
      <table>
        <search base="base_search_id">
          <query>|fields sourcetype</query>
        </search>
        <option name="drilldown">none</option>
      </table>
    </panel>
  </row>
</dashboard>
Happy Splunking!
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 ...