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
Legend

@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 🙂 *

---
What goes around comes around. If it helps, hit it with Karma 🙂

View solution in original post

renjith_nair
Legend

@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 🙂 *

---
What goes around comes around. If it helps, hit it with Karma 🙂

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!

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...