Below is my web.conf
serverName = lower_environment_3
I want to display the above serverName detail in login page. Tried this way and it doesn't work
hostName = cherrypy.request.app.config['global'].get('serverName', 'host_notset')
Any other way I could achieve this?
No problem. What you're looking for is just
It's a long story but the "app" in cherrypy.request.app.config has no relation to Splunk's "apps", nor is any splunk conf accessible that way.
So just put
somewhere in your login.html and it'll display as "lower_environment_3"
View solution in original post
Perfect. Thanks so much!
it doesn't work for me, could you explain how you managed to get it to work?