Security

How to add the Server Name to the Footer or Login Page?

simona2
New Member

Hi All,

I was wondering if there are any built-in variables or methods for the host name which the search head runs on? We have several Search Heads in our infrastructure, and part of operationalizing the infrastructure, we typically visually display the name / instance of the web application some where on the page in case the user needs it for reference.

Thanks

0 Karma

nickhills
Ultra Champion

I have this in my /system/local/web.conf

[settings]
enableSplunkWebSSL = true
privKeyPath = /opt/splunk/etc/auth/splunkweb/pk.pem
caCertPath = /opt/splunk/etc/auth/splunkweb/cert.pem
httpport = 8000
login_content = <img src="https://<my search head>/en-GB/static/app/MYAPP/MYLOGO.png" width="100" />

From docs:

login_content = <content_string>
* Add custom content to the login page
* Supports any text including html

https://docs.splunk.com/Documentation/Splunk/6.5.2/Admin/Webconf

If my comment helps, please give it a thumbs up!
0 Karma

pradeepkumarg
Influencer

We use to do this back in 5.x versions and things got changed on how you can customize the login page.

As of now, you can click on the about section on the bottom left of the page after logging in. This will give you the server information. Of course this doesn't solve your problem of having it on the login page. You can right click on login page and click on view source and search for serverName though. I know its not pretty.

0 Karma

nickhills
Ultra Champion

I have a logo on our login page - I too read the release notes which said the customisations were deprecated, but our logo is still there 🙂
I haven't looked into how (or why) its still working

UPDATE: This inspired me to look. I cant see that what is supported in 6.5.x is any different from what we had in 5

If my comment helps, please give it a thumbs up!
0 Karma

pradeepkumarg
Influencer

Things have definitely changed. Splunk web used to be a seperate cherry py layer, where as now it is tightly integrated with splunkd. You can see my 4 year old question on how I did it then.

https://answers.splunk.com/answers/102985/reference-to-web-conf-in-login-html.html

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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