Security

Is there a way to configure the browser's tab name that appears on splunkweb login page?

nitin82pandey
New Member

Hi, i am a newbie to splunk.

Wanted to know that Is there a way to configure the browser's tab name that appears on splunkweb login page?

I am using splunk 5.0.4.

0 Karma

sselvaraj_splun
Splunk Employee
Splunk Employee

We can change the Splunk web browser tab name using the web.conf file.
Including the below phrases to the web configuration will do.

[settings]
loginDocumentTitleOption = custom
loginDocumentTitleText = The text you want to have in the browser tab

Leo
Splunk Employee
Splunk Employee

There is no way to 'configure' it using conf files. Depending on your task, you may edit some html files on your Splunk instance, but this change will not be portable and will likely be lost during the next upgrade, so I wouldn't advise doing it.

Leo
Splunk Employee
Splunk Employee

Sorry, can't get the formatting right on this page. Here's the proper code paste: http://pastebin.com/SBUkh3Me

0 Karma

Leo
Splunk Employee
Splunk Employee

Surely. Within the directory where Splunk is installed find this file: \share\splunk\search_mrsparkle\templates\account\login.html
You're interested in line 6 of this file:
title = _('Login')

First comment out this line.
Then add some code as shown below. You should get something like this:


<%!
import time, json
import splunk.appserver.mrsparkle.lib.i18n as i18n

 # TRANS: This is the title for the account login page
 #title = _('Login')
%>

<%def name="title()">
    ${_('MY-NEW-TITLE-HERE') | h}\


<%inherit file="//layout/base.html" />
...

nitin82pandey
New Member

Thanks for your post. Any idea which file shuld be edited?
Sorry for being more demanding....

0 Karma

jspears
Communicator

A little searching led me to look at literals.conf, but I don't see that config item.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...