Dashboards & Visualizations

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

Lucas_Henry_
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

gokadroid
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
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...