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