Dashboards & Visualizations

Why does my dashboard time picker default to use only the earliest time in my token's date time range?

alfaconsult
New Member

I have added a time picker to my dashboard with the following default range configured:

   <fieldset submitButton="false" autoRun="false">
        <input type="time" token="Trial 15" searchWhenChanged="true">
          <label>Start thru end of first entity load:</label>
          <default>
            <earliest>1555779600</earliest>
            <latest>1555870800</latest>
          </default>
        </input>
      </fieldset>

But each time the dashoard loads, only the earliest time is used:
alt text
The time range is stored, but the only way to load the data with it is to manually select advanced mode and click apply there:
alt text

How do I fix this so that the entire range is used by default?

0 Karma
1 Solution

KailA
Contributor

Hi alfaconsult,

In token, put a variable name without space, for example:

<fieldset submitButton="false" autoRun="false">
         <input type="time" token="time_token" searchWhenChanged="true">
           <label>Start thru end of first entity load:</label>
           <default>
             <earliest>1555779600</earliest>
             <latest>1555870800</latest>
           </default>
         </input>
</fieldset>

Let me know !

View solution in original post

KailA
Contributor

Hi alfaconsult,

In token, put a variable name without space, for example:

<fieldset submitButton="false" autoRun="false">
         <input type="time" token="time_token" searchWhenChanged="true">
           <label>Start thru end of first entity load:</label>
           <default>
             <earliest>1555779600</earliest>
             <latest>1555870800</latest>
           </default>
         </input>
</fieldset>

Let me know !

alfaconsult
New Member

Thanks, that was it!

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi alfaconsult,
just some quick questions to better understand:

  • if you click on the "Since" button and choose "Between", do you see both your dates?
  • the results you have are all in the requested period or outside it?

Bye.
Giuseppe

0 Karma

alfaconsult
New Member

No, if I click "Between" it defaults to the date of my earliest time to the current date.

The results I am looking for are in the requested period. Instead of using the end date that I set, Splunk uses the current date/time.

0 Karma
Get Updates on the Splunk Community!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...