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!

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...