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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...