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!

Announcing the Expansion of the Splunk Academic Alliance Program

The Splunk Community is more than just an online forum — it’s a network of passionate users, administrators, ...

Learn Splunk Insider Insights, Do More With Gen AI, & Find 20+ New Use Cases You Can ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Buttercup Games: Further Dashboarding Techniques (Part 7)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...