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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...