Dashboards & Visualizations
Highlighted

How to edit my Simple XML to refresh a dashboard panel with a drop-down input?

New Member

So I've attempted to use some Simple XML coming in the new Splunk release, but I can't get it working quite right.

The search works, but the panel does not refresh. What am I doing wrong?

Code below:

<form>
  <label>FileNet Errors refresh tester</label>
  <fieldset submitButton="false" autoRun="true"></fieldset>
  <row>
    <panel>
      <input type="dropdown" token="refresh" searchWhenChanged="true">
        <label>Refresh</label>
        <choice value="5s">Every 5 seconds</choice>
        <choice value="30s">Every 30 seconds</choice>
        <choice value="0">Never</choice>
        <default>0</default>
      </input>
      <single>
        <search>
          <query>index=ecm* | stats count</query>
          <earliest>-15m</earliest>
          <latest>now</latest>
          <refresh>$refresh$</refresh>
          <refreshType>interval</refreshType>
        </search>
      </single>
    </panel>
  </row>
</form>
0 Karma
Highlighted

Re: How to edit my Simple XML to refresh a dashboard panel with a drop-down input?

Motivator

Seems a duplicate question to this:

https://answers.splunk.com/answers/442576/refresh-a-panelform-using-a-dropdown.html

A lot of good stuff is there and if anyone of it works out, please up vote here too 😄

0 Karma