All Apps and Add-ons

Hide Splunk Navigation bar of an app

rajeshjlnt
Path Finder

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.

Labels (3)
0 Karma
1 Solution

rajeshjlnt
Path Finder

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,

  1. Create a barebone app
  2. Create a copy of role 'user'
    1. Assign new app as default to this app
  3. Change navigation, Settings -> User interface -> Navigation menus -> New app's default.xml to;
    1. <nav search_view="search">
      <collection label="All dashboards">
      <view source="all" />
      </collection>
      </nav>
    2. This will show only 'Dashboard' tab
    3. More info on this here: https://dev.splunk.com/enterprise/docs/developapps/createapps/addnavsplunkapp/
  4. Copy/Move dashboards to this new app
  5. In Dashboard permission setting, check only new role and uncheck all other roles.
  6. Add hideSplunkBar="true" inside form or dashboard element to hide splunk bar
    1. More details: https://docs.splunk.com/Documentation/Splunk/8.0.6/Viz/PanelreferenceforSimplifiedXML

View solution in original post

0 Karma

rajeshjlnt
Path Finder

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,

  1. Create a barebone app
  2. Create a copy of role 'user'
    1. Assign new app as default to this app
  3. Change navigation, Settings -> User interface -> Navigation menus -> New app's default.xml to;
    1. <nav search_view="search">
      <collection label="All dashboards">
      <view source="all" />
      </collection>
      </nav>
    2. This will show only 'Dashboard' tab
    3. More info on this here: https://dev.splunk.com/enterprise/docs/developapps/createapps/addnavsplunkapp/
  4. Copy/Move dashboards to this new app
  5. In Dashboard permission setting, check only new role and uncheck all other roles.
  6. Add hideSplunkBar="true" inside form or dashboard element to hide splunk bar
    1. More details: https://docs.splunk.com/Documentation/Splunk/8.0.6/Viz/PanelreferenceforSimplifiedXML
0 Karma

richgalloway
SplunkTrust
SplunkTrust

You can add ?hideChrome to the URL of the app, but that's easily defeated by users.

See https://docs.splunk.com/Documentation/Splunk/latest/Viz/PanelreferenceforSimplifiedXML#:~:text=hideC...

---
If this reply helps you, Karma would be appreciated.

rajeshjlnt
Path Finder

@richgalloway , this is another way. I have tried this as well. Like you said, this is easily defeated by users.

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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