Splunk Search

How to remove "Other" option from Time Range Picker

tkadale
Path Finder

I have "Other" as a drop-down option in my Time Range Picker.
I have separate times.conf file for my application in default directory of application.
I have removed the "Other" from application's times.conf.
But still the Time Range Picker is showing Other as option in drop down.
I also have sub menu in Other option.
when I do is_sub_menu=False then sub menu doesn't display.
Is there any way, so that "Other" option should not display in Time Range Picker.
I want to remove "Other" option from Time range Picker drop down.
Can Anybody help??
Thanks in advance!

Tags (1)

wgntec
New Member

Try this!

1 - Create a file on $splunk_home/etc//appserver/static/dashboard.css
2 - Paste And modify as you want:
/* ------------------------------------------------- /
/
Hides or display specific portions of the /
/
Datetimepicker accordion /
/
------------------------------------------------- */

/* OPTIONS
div[id^='presets_view']
div[id^='relative_view']
div[id^='realtime_view']
div[id^='daterange_view']
div[id^='dateandtimerange_view']
div[id^='advanced_view']
*/

div[id^='daterange_view'],
div[id^='advanced_view'],
div[id^='relative_view'],
div[id^='realtime_view'] {
display: none;
}

3 - Salve and restart Splunk

0 Karma

mw
Splunk Employee
Splunk Employee

Try this:

# times.conf

[other]
disabled = true

dvg06
Path Finder

This disables the all time from presets, but you can actually do an all time search if you update earliest time in advanced to 0.

0 Karma

nitesh218ss
Communicator

Hi i use same and restart after also but they not effect after that also they automatically sort base on _time

0 Karma

tkadale
Path Finder

Thank You Very Much. It worked.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...