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

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!

Splunk App for Anomaly Detection End of Life Announcment

Q: What is happening to the Splunk App for Anomaly Detection?A: Splunk is officially announcing the ...

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...