All Apps and Add-ons

Is there a way to disable the "Custom Time" option in the "TimeRangePicker" module?

justjosh
Explorer

Is there a way to disable the "Custom Time" option in the "TimeRangePicker" module?

It's important that I can restrict the time range users can search on.

I am aware I can restrict the time range by applying restrictions by user role permissions, but this just confuses things for my users. They still can choose any arbitrary "Custom Time" range - but they are never warned if the range they have chosen exceeds the permitted time range for their role.

Perhaps SideViewUtils has something?

sideview
SplunkTrust
SplunkTrust

No I'm afraid there is currently no way. You can restrict all the other options by modifying times.conf, as long as you're OK with the changes affecting all roles and users and taking effect across an entire app rather than just certain views. However the "custom time" UI cannot be turned off.

Sideview Utils doesn't offer anything here either. Although I get a lot of requests to build a simple DateTimePicker and also a simple TimeRangePicker replacement, I haven't gotten to it yet. It is coming though and I will try to implement something sensible here for your use case.

0 Karma
Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...