Security

How can I customize login screen beyond messages by login_content?

melonman
Motivator

Hi there,

I added customized message and image to the login screen by setting login_content parameter in web.conf. However, I need to customize the login screen beyond just adding messages.

http://www.splunk.com/base/Documentation/4.1.5/Developer/CustomizeLogin

As I saw the documentation above, I could not find any information about customizing login screen. Is there any customization option for login page?

Thanks!

Tags (1)
1 Solution

dwaddle
SplunkTrust
SplunkTrust

What you see in the docs is the official/supported login screen customization.

For the brave, you can edit the login html page directly - http://answers.splunk.com/questions/6358/can-i-change-the-splunk-login-page . Obviously, this could break things in unexpected ways and cause you support headaches down the road.

Additionally, you can turn off the "update checker" on the login panel - see http://answers.splunk.com/questions/2343/how-do-i-disable-the-display-of-release-messages-on-login-p...

View solution in original post

asetyyli
Explorer

You can extend the official login screen customization by using the login_content parameter in web.conf to include inline JavaScipt into the page. The JS is evaluated at page load and it can make arbitrary changes to the page.

For example to change the background color, put in $SPLUNK_HOME/etc/system/local/web.conf

[settings]
login_content=

0 Karma

dwaddle
SplunkTrust
SplunkTrust

What you see in the docs is the official/supported login screen customization.

For the brave, you can edit the login html page directly - http://answers.splunk.com/questions/6358/can-i-change-the-splunk-login-page . Obviously, this could break things in unexpected ways and cause you support headaches down the road.

Additionally, you can turn off the "update checker" on the login panel - see http://answers.splunk.com/questions/2343/how-do-i-disable-the-display-of-release-messages-on-login-p...

piebob
Splunk Employee
Splunk Employee

yes, the first option dwaddle suggests does work, but it's important to understand that changes you make to the login.html will be overwritten every time you upgrade, so you'll have to make a copy of your edited login page and re-add it after every upgrade. it is also not guaranteed that the design of the login page html won't change, so you should make sure to check it out, especially after a major release upgrade (for instance to 4.2 when it comes out next year).

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...