Splunk Search

How to set Default Time Range for View in viewstates.conf

tkadale
Path Finder

I have Screen 1 for which I have set default time range in viewstates.conf for a user as follows:

[Screen_1:_current]

TimeRangePicker_0_0_0.default = Last 7 days

When Screen Loads for first time, it shows default time range as Last 7 Days.

then I change the time range to "All Time" and see the graphs.

After this I refresh the application. When I again select this Screen, default is shown "All Time".

I have used isSticky=false in the XML of the Screen.

When I checked viewstates.conf the default automatically changes to "All Time" from "Last 7 Days".

Can anybody help.

Thanks in advance!

Tags (1)
0 Karma

hazekamp
Builder

tkadale,

Have you tried '_current' in viewstates.conf?

## viewstates.conf
<viewstate_id> = '_current' is a reserved name for normal view 'sticky state'
0 Karma

tkadale
Path Finder

Thanks for the reply!

Sorry I didnt get what you want to say.I have configured in viewstates.conf as mentioned above.

Please provide more details if possible

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...