Dashboards & Visualizations

System input will not repopulate when time range picker selection is changed

zd00191
Communicator

Hello. I have a dashboard with two inputs to select from a the top. One is te time range picker and the other is System. When I change the time range picker, the System input drop down does not repopulate. Can anyone please explain why? I have put the top of the xml below?

 <form>
  <label>CA Autosys Executive Summary</label>
  <fieldset autoRun="true" submitButton="false">
    <input type="time" searchWhenChanged="true" token="dashboardTime">
      <default>
        <earliestTime>@d</earliestTime>
        <latestTime>now</latestTime>
      </default>
    </input>
    <input type="dropdown" token="System" searchWhenChanged="true">
      <label>System</label>
      <choice value="*">All</choice>
      <default>*</default>
      <populatingSearch fieldForValue="System" fieldForLabel="System">
        <![CDATA[ index=ko_autosys sourcetype=autosys_applog_scheduler_events host="usatlb98" OR host="usatlb91" $dashboardTime$ |stats count by System ]]>
      </populatingSearch>
    </input>
  </fieldset>
0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

That's because you're not setting the time range properly on the populatingSearch. Should be like this:

<populatingSearch earliest="$dashboardTime.earliest$" latest="$dashboardTime.latest$" ...>

http://docs.splunk.com/Documentation/Splunk/6.2.3/Viz/PanelreferenceforSimplifiedXML

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

That's because you're not setting the time range properly on the populatingSearch. Should be like this:

<populatingSearch earliest="$dashboardTime.earliest$" latest="$dashboardTime.latest$" ...>

http://docs.splunk.com/Documentation/Splunk/6.2.3/Viz/PanelreferenceforSimplifiedXML

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 ...