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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...