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
SplunkTrust
SplunkTrust

@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