Splunk Search

hide navigation tabs(Messages ,settings,Activity,Help,find) when a user logs in.

abhishekroy168
Path Finder

Hi all,
I am using splunk 6.6.
My requirement is hide the tabs like message ,setting ,help and others for a particular user.
Also the splunk logo on the left top should be not visible.
Please hepl me out with some solution:)

Tags (1)
0 Karma

niketn
Legend

@abhishekroy168, if you would read through the options discussed in the answer
https://answers.splunk.com/answers/588779/whats-the-best-way-to-limit-a-role-so-it-only-has.html, one of the options (easiest to implement) is
Step 1) To create two copies of the same dashboard. One with Read Only Access/components and second with Edit option.
Step 2) Then apply hideChrome etc. for the Dashboard with read only access to hide the components you do not need.
Step 3) Finally enable View access to Read Only Dashboard for users and View/Edit access to Editable Dashboard to admin.

The downside of this approach would be count of your dashboards will be doubled.

If you want to take complete control of your dashboards to enable/disable hide/show components in your dashboard, you would require Simple XML JS and CSS extension, which is also referenced in the answer: https://answers.splunk.com/answers/575377/can-i-restrict-permissions-for-the-text-box-drilld.html. Idea is to get the Logged in User Role/s using REST API and based on the role set the token/CSS style override accordingly.

Since your requirement is to hide Splunk App Bar based on logged in user, you can do the same using CSS override within the Simple XML Dashboard. Hence static file will not be required. Refer to my recent answer, which simulates hiding or displaying Splunk App Bar based on the check box. You can plug in REST API based query to set/unset token instead of the checkbox.

https://answers.splunk.com/answers/636485/how-can-i-use-a-token-to-set-hidesplunkbar.html#answer-636...

Please try out and confirm. Do let us know if you run into any issues 🙂

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

abhishekroy168
Path Finder

I need to hide splunk logo(its a css content "splunk") i need to change it to some other name at the splunk welcome page left top side.

0 Karma

niketn
Legend

@abhishekroy168, your question was to hide the Splunk Bar which contains Message, Settings etc.

It can be hidden from Dashboard but not other Menu items, for which you would need to create your own Navigation Menu which would point to dashboards, one of the dashboards can be your landing page. You can create your own Search UI using Splunk Dashboard with Simple XML JS extension if you need to hide Splunk bar in Search Menu for your app.

https://answers.splunk.com/answers/586948/how-to-change-app-banner-css-when-open-search-in-s.html

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

abhishekroy168
Path Finder

hi gurav thanks for the reply,
but my requirement is based for user.
So if a user logs in tabs like message ,setting ,help and others should be hidden but at the same time if i log in as an admin user all those tab should be visible.
Also in the above link i am not able find the path your_app/appserver/static/dashboard.css:
Instead i put those css in dashboard.css file at location **/apps/search/appserver/static/dashboard.css
and by placing it here its not working.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...