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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...