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!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...