Security

Add text to login page (web.conf), restart needed?

mkelderm
Path Finder

I know you can add custom HTML in the web.conf (login_content) but IMHO, SplunkWeb needs a restart. Can you add a custom message without restart?

0 Karma
1 Solution

cmeinco
Path Finder

post login, you can use messages to be displayed to users. I do this to inform users of outages, planned changes, etc.

http://docs.splunk.com/Documentation/Splunk/5.0.4/RESTAPI/RESTsystem#messages

Use something like:

curl -k -u adminuserid https://splunk.com:8089/services/messages \
-d name=message \
-d value="[$(date)] Notice Servers being rebooted at 3PM. Contact cmeinco with any questions or concerns."

Note: curl will prompt for the user password, instead of running with your pwd on the command line

Then after the change, i clear the message from the search head, since only admins can do this.

Good luck.

View solution in original post

cmeinco
Path Finder

post login, you can use messages to be displayed to users. I do this to inform users of outages, planned changes, etc.

http://docs.splunk.com/Documentation/Splunk/5.0.4/RESTAPI/RESTsystem#messages

Use something like:

curl -k -u adminuserid https://splunk.com:8089/services/messages \
-d name=message \
-d value="[$(date)] Notice Servers being rebooted at 3PM. Contact cmeinco with any questions or concerns."

Note: curl will prompt for the user password, instead of running with your pwd on the command line

Then after the change, i clear the message from the search head, since only admins can do this.

Good luck.

ChrisG
Splunk Employee
Splunk Employee

You will have to restart, see the first paragraph in Customize the login screen in the documentation.

0 Karma

somesoni2
Revered Legend

Any changes to .conf file directly would require a restart.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...