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!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

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