Dashboards & Visualizations

how to use shared time picker for multi select input dynamic query

kranthimutyala
Path Finder

I have created a dashboard with multi select input to select the required value from the list and a time picker input to restrict the results for a specific time period.

Now i want to use this time picke

Tags (1)
0 Karma

vnravikumar
Champion

Hi

Check this

<form>
  <label>timepicker</label>
  <fieldset submitButton="false">
    <input type="time" token="time">
      <label></label>
      <default>
        <earliest>-24h@h</earliest>
        <latest>now</latest>
      </default>
    </input>
    <input type="multiselect" token="field2">
      <label>field2</label>
      <fieldForLabel>sourcetype</fieldForLabel>
      <fieldForValue>sourcetype</fieldForValue>
      <search>
        <query>index=_internal |stats count by sourcetype</query>
        <earliest>$time.earliest$</earliest>
        <latest>$time.latest$</latest>
      </search>
    </input>
  </fieldset>
</form>
0 Karma

vnravikumar
Champion

Hi

Can you specify your requirements completely?

0 Karma
Get Updates on the Splunk Community!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...