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

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

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