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!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...