Dashboards & Visualizations

How to hide "Create new dashboard button" in an app?

Applegreengrape
Explorer

I am creating an App on Splunk and need to hide "Create new dashboard button" from the app users.

I tried editing the dashboard.css, but it doesn't work.

D:\Splunk Enterprise\etc\apps\my_app\appserver\static

.btn-group:first-child{

display:none;

}

I restarted Splunk, but that button is still there...

0 Karma

jkat54
SplunkTrust
SplunkTrust
For me it is called .btn:first-child 

Also this is the html <button class="btn btn-primary add-dashboard" ">Create New Dashboard</button>

so this should work
.btn-primary {
display: none;
}

Also you might get away with something like this:

   <![CDATA[
    <style>
    button[class*=add-dashboard]{ display:none; }
    </style>
   ]]>
0 Karma

Applegreengrape
Explorer

where should the html stored? there is one default.xml in the local\ui...do you mean that one?

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...