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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

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 ...