Splunk Search

How to set default time range for view

tkadale
Path Finder

I want to set the default time range to last 7 days whenever View gets loaded. If I change it manually to All time and revisit the view again, it should show the default time range set for it and not the one I selected manually. Is there any way to achieve it??

Tags (1)
0 Karma

tkadale
Path Finder

I have tried it but it didn't work.

0 Karma

imrago
Contributor
0 Karma

imrago
Contributor
<module name="TimeRangePicker"> 
<param name="default">Year to date</param> 

from the documentation of the TimeRangePicker module:

default

When this is set to one of the time range labels in times.conf, the system sets that time range option when the page loads.

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...