Dashboards & Visualizations

changing default-search-timeframes

ajji2684
Engager

Hi

I tried to change the default search times from All time to custom timeframe by changing


All time


Last 60 minutes

It's not working .

0 Karma

sideview
SplunkTrust
SplunkTrust

The view is probably configured to be "sticky", ie up in the <view> tag there is no isSticky="False" attribute.

Which means that the view is always watching the TimeRangePicker for changes, and it always remembers the value you last set. This "sticky" value will always override the default for your user account, whereas another Splunk user who never touched the control, will see your change take effect.

One clunky thing about stickiness is that if you go now and put isSticky="false" into your view, it will indeed no longer record changes to the TimeRangePicker. Unfortunately it will continue to remember whatever the last change was before you turned stickiness off. To truly get it to ignore that value you have to go into viewstates.conf manually in etc/users/<username>/<appname>/local/viewstates.conf and delete the relevant stanza.

As a best practice I recommend setting isSticky="False" for all advanced XML views, to just avoid this issue entirely.

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 ...