Splunk Enterprise

How to auto-refresh panel?

lawrence_magpoc
Explorer

How do I auto-refresh a panel in Splunk Enterprise 8.0.0? I tried the refresh.auto.interval option but it's already deprecated. Tried the refresh attribute too but it seems that it only applies on the whole dashboard and not the individual panel.

Tags (1)
0 Karma
1 Solution

vnravikumar
Champion

Hi

Check this

<dashboard>
  <label>autorefresh</label>
  <row>
    <panel>
      <table>
        <search>
          <query>index=_internal |stats count by host</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
          <refresh>2s</refresh>
        </search>
        <option name="drilldown">none</option>
      </table>
    </panel>
  </row>
  <row>
    <panel>
      <table>
        <search>
          <query>index=_internal |stats count by sourcetype</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">none</option>
      </table>
    </panel>
  </row>
</dashboard>

View solution in original post

0 Karma

niketn
Legend

@lawrence_magpoc , the refresh.auto.interval option has been deprecated from Splunk 6.5 and above. You should be using <refresh> option as mentioned below by @vnravikumar

Refer to one of my older answers: https://answers.splunk.com/answers/551168/how-to-refresh-a-panel-values-based-on-input-token.html

Refer to documentation for details: https://docs.splunk.com/Documentation/Splunk/latest/Viz/PanelreferenceforSimplifiedXML#search

You can also check out Splunk Dashboard Examples app from Splunkbase for examples on the same.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

vnravikumar
Champion

Hi

Check this

<dashboard>
  <label>autorefresh</label>
  <row>
    <panel>
      <table>
        <search>
          <query>index=_internal |stats count by host</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
          <refresh>2s</refresh>
        </search>
        <option name="drilldown">none</option>
      </table>
    </panel>
  </row>
  <row>
    <panel>
      <table>
        <search>
          <query>index=_internal |stats count by sourcetype</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">none</option>
      </table>
    </panel>
  </row>
</dashboard>
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...