Security

How can I customize login screen beyond messages by login_content?

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

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

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

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

Motivator

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

State of Splunk Careers

Access the Splunk Careers Report to see real data that shows how Splunk mastery increases your value and job satisfaction.

Find out what your skills are worth!