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

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

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