Dashboards & Visualizations

how can i fixed time range for a dashboard?

medvelsplunk
Engager

i create one dashboard and I add input for a time range but for default this appear for 24 hours, but i fixed the time range for a 7 days

Tags (1)
0 Karma

nikita_p
Contributor

Hi,
After you are done with the settings niketnilay suggested, you can also depend your panel on the input you give by changing your search settings
ui > edit > edit search(click on small search icon) > Time Range > shared time picker

0 Karma

niketn
Legend

@medvelsplunk you can use UI > Edit and then use Edit Input option to change the Default value from Token Option section from Last 24 Hours to Last 7 Days

Alternatively, you can directly change the Simple XML Dashboard code by UI > Edit > Source. Assuming the token for Time Picker input is tokTime, notice the <default> section in the Simple XML code contains the default value for Time Picker Input. Change <earliest> from -24h@h to -7d@h (which tells time to snap to 7 days ago at the present hour).

<input type="time" token="tokTime">
  <label></label>
  <default>
    <earliest>-7d@h</earliest>
    <latest>now</latest>
  </default>
</input>

Refer to Splunk Documentation: https://docs.splunk.com/Documentation/Splunk/latest/Viz/Buildandeditforms#Form_with_time_inputs_exam...

Please try out either option and confirm!

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

vnravikumar
Champion

Hi @medvelsplunk

Can you please elaborate your issue?

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...