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!

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...

Stay Connected: Your Guide to October Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...