Splunk Search

How do I change the title text on the tabs from default text to a custom text?

sh254087
Communicator

I want to change the title text on the tabs from, for example, "Login|Splunk" or "Dashboards | Splunk 7.1.2" to a text which I want, something like just "Login" or just "Dashboards." I also want to exclude the Splunk version details from being displayed on the title.

So, I have two questions:

—How do I change the title text on the tabs from default text to a custom text?
—How do I disable the Splunk version details being displayed on the tab title?

Is there a way that I achieve this?

Note: Found a similar question here - https://answers.splunk.com/answers/521061/how-to-change-bookmark-name-from-loginsplunk-to-na.html, but the answer provided was in Chinese.

0 Karma
1 Solution

renjith_nair
SplunkTrust
SplunkTrust

@sh254087,

Any changes to the design has to be allowed by your license terms. Consult with your Splunk representative

The login page document title can be changed in web.conf . Reference WEB CONF

loginDocumentTitleOption = custom
loginDocumentTitleText = "your title"

However, please do check the license agreement as stated below about these properties.

# Default login document title settings
# NOTE: This option is made available only to OEM customers participating in Splunk’s OEM Partner Program
# and subject to the relevant terms of the Master OEM Agreement. All other customers or partners are prohibited
# from removing or altering any copyright, trademark, and/or other intellectual property or proprietary rights
# notices of Splunk placed on or embedded in any Splunk materials.
loginDocumentTitleOption = default
loginDocumentTitleText =

For other dashboard, it's part of the core js files. For e.g. change in

$SPLUNK_HOME/share/splunk/search_mrsparkle/exposed/build/pages/enterprise/common.js

From
document.title=splunkUtils.sprintf(_("%s | Splunk %s %s").t(),title,isLite?"Light":"",version)}.bind(this))}

to

document.title=splunkUtils.sprintf(_("%s | your_preferred_text %s").t(),title,isLite?"Light":"",version)}.bind(this))}

This will print Your Dashboard Name| your_preferred_text

Upgrade of splunk will rewrite these files and you might need to redo it again. And again highly suggest to consult with your splunk contact! *Risk is all yours 🙂 *

Happy Splunking!

View solution in original post

renjith_nair
SplunkTrust
SplunkTrust

@sh254087,

Any changes to the design has to be allowed by your license terms. Consult with your Splunk representative

The login page document title can be changed in web.conf . Reference WEB CONF

loginDocumentTitleOption = custom
loginDocumentTitleText = "your title"

However, please do check the license agreement as stated below about these properties.

# Default login document title settings
# NOTE: This option is made available only to OEM customers participating in Splunk’s OEM Partner Program
# and subject to the relevant terms of the Master OEM Agreement. All other customers or partners are prohibited
# from removing or altering any copyright, trademark, and/or other intellectual property or proprietary rights
# notices of Splunk placed on or embedded in any Splunk materials.
loginDocumentTitleOption = default
loginDocumentTitleText =

For other dashboard, it's part of the core js files. For e.g. change in

$SPLUNK_HOME/share/splunk/search_mrsparkle/exposed/build/pages/enterprise/common.js

From
document.title=splunkUtils.sprintf(_("%s | Splunk %s %s").t(),title,isLite?"Light":"",version)}.bind(this))}

to

document.title=splunkUtils.sprintf(_("%s | your_preferred_text %s").t(),title,isLite?"Light":"",version)}.bind(this))}

This will print Your Dashboard Name| your_preferred_text

Upgrade of splunk will rewrite these files and you might need to redo it again. And again highly suggest to consult with your splunk contact! *Risk is all yours 🙂 *

Happy Splunking!

brook5838
Engager

Any updates to this for Splunk 9.x?

We are an OEM partner and authorized to make this change, but cannot figure out how to make the change in Splunk 9.x. It looks like the javascript syntax has changed. I found what I thought was the equivalent, but changing it doesn't have any affect.

0 Karma

brook5838
Engager

If using dark mode dashboards, you also have to edit the following two files with same tweak:

  • /opt/splunk/share/splunk/search_mrsparkle/exposed/build/pages/dark/dasboard.js
  • /opt/splunk/share/splunk/search_mrsparkle/exposed/build/pages/dark/dashboard_1.1.js
0 Karma

sh254087
Communicator

This perfectly served my requirement. Thank you very much, @renjith.nair

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