- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How can I hide Splunk Navigation bar of an entire app?
I know about hideSplunkBar="true", this is at dashboard level. I want hide splunk bar of an entire app that i am creating.
I have also tried having a css file under '#splunkhome\etc\apps\<appname>\appserver\static\' with following,
div[data-view="views/shared/splunkbar/Master"]{
display: none !important;
}
.class="view---pages-enterprise---8-0-4---2Izs_"{
display: none !important;
}.
This did not hide the splunk bar
Please provide guidance if anybody has achieved this.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
After a lot of search and research, I was not able to find any setting to hide navigation at app level.
However, this can be achieved with combination of 2 steps,
1. Modifying an apps navigation in default.xml
2. Limiting dashboard access to a particular role
Following are the details of steps I followed,
- Create a barebone app
- Create a copy of role 'user'
- Assign new app as default to this app
- Change navigation, Settings -> User interface -> Navigation menus -> New app's default.xml to;
- <nav search_view="search">
<collection label="All dashboards">
<view source="all" />
</collection>
</nav> - This will show only 'Dashboard' tab
- More info on this here: https://dev.splunk.com/enterprise/docs/developapps/createapps/addnavsplunkapp/
- <nav search_view="search">
- Copy/Move dashboards to this new app
- In Dashboard permission setting, check only new role and uncheck all other roles.
- Add hideSplunkBar="true" inside form or dashboard element to hide splunk bar
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
After a lot of search and research, I was not able to find any setting to hide navigation at app level.
However, this can be achieved with combination of 2 steps,
1. Modifying an apps navigation in default.xml
2. Limiting dashboard access to a particular role
Following are the details of steps I followed,
- Create a barebone app
- Create a copy of role 'user'
- Assign new app as default to this app
- Change navigation, Settings -> User interface -> Navigation menus -> New app's default.xml to;
- <nav search_view="search">
<collection label="All dashboards">
<view source="all" />
</collection>
</nav> - This will show only 'Dashboard' tab
- More info on this here: https://dev.splunk.com/enterprise/docs/developapps/createapps/addnavsplunkapp/
- <nav search_view="search">
- Copy/Move dashboards to this new app
- In Dashboard permission setting, check only new role and uncheck all other roles.
- Add hideSplunkBar="true" inside form or dashboard element to hide splunk bar
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content


You can add ?hideChrome to the URL of the app, but that's easily defeated by users.
If this reply helps you, Karma would be appreciated.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@richgalloway , this is another way. I have tried this as well. Like you said, this is easily defeated by users.
