Dashboards & Visualizations

How to load drop down list based on time selector token?

Jasmine
Path Finder

How to load drop down list based on time selector token

Labels (1)
0 Karma

somesoni2
Revered Legend

Assuming you're using simple xml, Edit your dashboard xml to add timerange elements in your dropdown search.

  <input type="dropdown" token="dropdownToken" searchWhenChanged="true">
      <label>Dropdown label</label>
      <fieldForLabel>value</fieldForLabel>
      <fieldForValue>value</fieldForValue>
      <search>
        <query>your dropdown search</query>
        <earliest>$timerange.earliest$</earliest>
        <latest>$timerange.latest$</latest>
      </search>
    </input>

 

0 Karma

richgalloway
SplunkTrust
SplunkTrust

What do you want to be in the dropdown list?  How does the list change based on the time selector?

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...