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 Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...