Dashboards & Visualizations

Remove some options from splunk default time

karthi25
Path Finder

I want to remove Date Range and Date & Time Range options from the time selection box. I have tried using

div[id^='daterange_view']
 div[id^='dateandtimerange_view']
  {
     display: none;
 }

I have highlighted the part I want to remove:
alt text
but no use on it.
Can anyone please help me to do it.

0 Karma
1 Solution

niketn
Legend

@karthi25, try the following CSS Override.

  <html depends="$alwaysHideCSS$">
    <panel>
      <style>
        div[id^="daterange_view"],div[id^="dateandtimerange_view"]{
          visibility:hidden !important;
        }
      </style>
    </panel>
  </html>
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

View solution in original post

niketn
Legend

@karthi25, try the following CSS Override.

  <html depends="$alwaysHideCSS$">
    <panel>
      <style>
        div[id^="daterange_view"],div[id^="dateandtimerange_view"]{
          visibility:hidden !important;
        }
      </style>
    </panel>
  </html>
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

niketn
Legend

Adding one more setting to reduce the height of time picker dialog:

        .shared-timerangepicker-dialog {
            height: 300px !important;
        }
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

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

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...