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!

.conf25 Registration is OPEN!

Ready. Set. Splunk! Your favorite Splunk user event is back and better than ever. Get ready for more technical ...

Detecting Cross-Channel Fraud with Splunk

This article is the final installment in our three-part series exploring fraud detection techniques using ...

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...