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!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...