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!

Splunk Enterprise Security 8.0.2 Availability: On cloud and On-premise!

A few months ago, we released Splunk Enterprise Security 8.0 for our cloud customers. Today, we are excited to ...

Logs to Metrics

Logs and Metrics Logs are generally unstructured text or structured events emitted by applications and written ...

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...