Splunk Enterprise

Change default Language

neboutl
New Member

Hello,
I have a question about the possibility to change the default langauge.
OS : Windows Server 2008R2
OS language : FRENCH

Is it possible to change the SPLUNK default language :
From French to English or Japanese ?

I saw the solution for Linux server. Have you got a procedure for Microsoft environment ?
Best reagrds,
Laurent

Tags (1)
0 Karma

BorisGrochalski
Explorer

Update for Splunk 8:
With the introduction of Python 3, the workaround of hardcoding your locale has changed.
You need to access the following file:
$SPLUNK_HOME/lib/python3.7/site-packages/splunk/appserver/mrsparkle/lib/util.py
On line 1768 you need to replace
locale = "%s-%s" % (locale[0], locale1) if locale1 else locale[0]
with
locale="en-US"
or whatever locale you need.

Still, a config file / line for this is long overdue.
If you also need this feature please consider voting for this idea / change request:
Per user UI language and date/time settings

0 Karma

androchentw
Engager

FYI if anyone needed

it's still the same for 

$SPLUNK_HOME$/lib/python3.7/site-packages/splunk/appserver/mrsparkle/lib/util.py

 

# line 1578
def make_i18n_url(path, translate=True):

...

# line 1589
    locale = "%s-%s" % (locale[0], locale[1]) if locale[1] else locale[0]

# I just commented the line above and add below to 
# only overwrite certain locale but enable other URL specified locale.
# Dirrectly writing locale = "{NEW_LOCALE}" will let URL locale not working anymore.

#   locale = "{NEW_LOCALE}" if (locale == '{NEW_LOCALE}') else locale

 

but mine is line 1589 (rather than line1768), on Mac instance Splunk v8.1.2

 

0 Karma

vedantyadav
New Member

The splunk automatically detects user's browser's default language and uses it. You can use use a temporary solution of changing the web url as http://host:port/locale/..

However there is also another method of editing Splunk/Python-2.7/Lib/site-packages/splunk/appserver/mrsparkle/lib/i18n.py file on line 333 replacing (changing line 449 didn't help me)
locale = "%s-%s" % (locale[0], locale[1]) if locale[1] else locale[0]
with
locale="en-GB"
Save and restart splunk

Splunk provides built-in support for these locales:
de-DE
en-GB
en-US
fr-FR
it-IT
ja-JP
ko-KR
zh-CN
zh-TW

0 Karma

inventsekar
Super Champion

Configure user language and locale
When a user logs in, Splunk automatically uses the language that the user's browser is set to. To switch languages, change the browser's locale setting. Locale configurations are browser-specific.

Splunk detects locale strings. A locale string contains two components: a language specifier and a localization specifier. This is usually presented as two lowercase letters and two uppercase letters linked by an underscore. For example, "en_US" means US English and "en_GB" means British English.

The user's locale also affects how dates, times, numbers, etc., are formatted, as different countries have different standards for formatting these entities.

Splunk provides built-in support for these locales:

de_DE
en_GB

en_US
fr_FR
it_IT

ja_JP
ko_KR

zh_CN
zh_TW

Override the browser locale
The locale that Splunk uses for a given session can be changed by modifying the url that you use to access Splunk. Splunk urls follow the form http://host:port/locale/....
For example, when you access Splunk to log in, the url may appear as http://hostname:8000/en-US/account/login for US English.
To use British English settings, you can change the locale string to http://hostname:8000/en-GB/account/login. This session then presents and accepts timestamps in British English format for its duration.

https://docs.splunk.com/Documentation/Splunk/6.5.0/Admin/Userlanguageandlocale

>>> Happy Splunking !
0 Karma
Get Updates on the Splunk Community!

Improve Your Security Posture

Watch NowImprove Your Security PostureCustomers are at the center of everything we do at Splunk and security ...

Maximize the Value from Microsoft Defender with Splunk

 Watch NowJoin Splunk and Sens Consulting for this Security Edition Tech TalkWho should attend:  Security ...

This Week's Community Digest - Splunk Community Happenings [6.27.22]

Get the latest news and updates from the Splunk Community here! News From Splunk Answers ✍️ Splunk Answers is ...