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!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...