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

Get Updates on the Splunk Community!

Ready, Set, SOAR: How Utility Apps Can Up Level Your Playbooks!

 WATCH NOW Powering your capabilities has never been so easy with ready-made Splunk® SOAR Utility Apps. Parse ...

DevSecOps: Why You Should Care and How To Get Started

 WATCH NOW In this Tech Talk we will talk about what people mean by DevSecOps and deep dive into the different ...

Introducing Ingest Actions: Filter, Mask, Route, Repeat

WATCH NOW Ingest Actions (IA) is the best new way to easily filter, mask and route your data in Splunk® ...