Dashboards & Visualizations

In the time range picker, how do you make the date range picker select "between" as default?

matthieumarrast
Explorer

In the Splunk time range picker, in the "Date Range" panel part (with values "before, "since" and "between"), the "before" value is selected by default, but I want the "between".

Do you know how to do that?

alt text

0 Karma
1 Solution

matthieumarrast
Explorer

Thank you I succeed with:

<input type="time" token="revision_date" id="revdate_date_input">
      <label>Revision date</label>
      <default>
        <earliest></earliest>
      </default>
    </input>

View solution in original post

0 Karma

matthieumarrast
Explorer

Thank you I succeed with:

<input type="time" token="revision_date" id="revdate_date_input">
      <label>Revision date</label>
      <default>
        <earliest></earliest>
      </default>
    </input>
0 Karma

vnravikumar
Champion

Try with

<input type="time" id="time1">
      <label>Time Between Example</label>
      <default>
        <earliest>0</earliest>
        <latest></latest>
      </default>
    </input>
0 Karma

matthieumarrast
Explorer

@vnravikumar, thank you, but I want to keep my "All time" as the default value:

alt text

But when I click on "Date Range", the "Since" (or "Between") must be selected by default, and currently it's alsways "Before".

0 Karma

vnravikumar
Champion

Please try by specifying earliest and latest in epoch under <default>

<input type="time">
      <label>Time Between Example</label>
      <default>
        <earliest>1546905600</earliest>
        <latest>1546991999</latest>
      </default>
    </input>
0 Karma
Get Updates on the Splunk Community!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...