Security

Applying custom CSS for Splunk login page in 6.5.2

keerthana_k
Communicator

Hi,

We are currently upgrading our Splunk to 6.5.2 version. We had some customizations in the login page previously and we would like to bring them back. Using the docs, we were able to bring back the custom background and logo. We need further customizations on the appearance of the text boxes, button, etc. We want to add our custom CSS for doing the same but we are unable to figure out where to place the CSS so that it gets applied to the login page. Any pointers to this will really help.

Thanks,
Keerthana

0 Karma

niketn
Legend

@keerthana_k , Splunk Login Page Customization details are listed in the following Splunk Documentation: http://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/CustomizeLogin

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

jkat54
SplunkTrust
SplunkTrust

You can open Dev tools in your browser, look at page assets and find the name of the css file you want to edit, then search the filesystem for it.

0 Karma

niketn
Legend

Custom Stylesheet should be placed for specific app under appserver/static folder. Following is the path: $SPLUNK_HOME/etc/apps/<YourAppName>/appserver/static

Depending upon whether you want to apply CSS to specific Dashabord or all you can either create any CSS file and refer in your dashboard using

<dashboard stylesheet="<yourStyleSheetName.css>">

Or

<form stylesheet="<yourStyleSheetName.css>">

If you want to apply your CSS changes to all dashboards in your app, you should be creating a CSS file called dashboard.css and place the same in appserver/static folder as mentioned above.
Refer to the following Splunk documentation: https://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/UseCSS
You can also refer to Custom Layout Example: Dark example in the Splunk 6.x Dashboard Examples app from Splunkbase.

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

keerthana_k
Communicator

This works for dashboards inside an app. We want to customize the login page using CSS. I don't think your answer caters to our requirement.

0 Karma

niketn
Legend

@keerthana_k, I have converted my answer to comment so that it flashes for others as unanswered.

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

niketn
Legend

@keerthana_k... have you checked following Splunk Answers? seems like it is login.css which needs to be updated : $SPLUNK_HOME/share/splunk/search_mrsparkle/exposed/css/login.css

https://answers.splunk.com/answers/59008/change-the-login-page-and-master-page-of-splunk.html

Also for Splunk login customization all configurations have been listed on Splunk Documentation link: https://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/CustomizeLogin

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

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 ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...