Dashboards & Visualizations

How to prevent translation of labels and input fields in dashboards?

DATEVeG
Path Finder

Hello community,

we are using the german localization which is fine for the general ease of use of our users to navigate through Splunk. 
But the localization also leads to automatic translation of parts of the labels and input fields (e.g. multiselect input fields)  in user-created dashboards. The latter is particularly irritating, because the translation isn't always 100 percent fitting and most of the time you get an ugly mix of translated and english values.
Is there a way to prevent a dashboard  from getting auto-translated - without having to set the language specifier and localization specifier to english?

Regards,

Jens

Labels (3)
1 Solution

MMahlberg
Explorer

Hi Jens,
I found a solution which does not require for a change of system language settings in case people view this dashboard with different language settings:

In your dropdown search configuration create a new field with

| eval field2 = original_field + " "

which simply adds a space at the end.

In the dropdown then use
Field For Label = field2
Field For Value = field

 

With the added empty space Splunk will not translate the field.

greetings & happy splunking,

Max

View solution in original post

MMahlberg
Explorer

Hi Jens,
I found a solution which does not require for a change of system language settings in case people view this dashboard with different language settings:

In your dropdown search configuration create a new field with

| eval field2 = original_field + " "

which simply adds a space at the end.

In the dropdown then use
Field For Label = field2
Field For Value = field

 

With the added empty space Splunk will not translate the field.

greetings & happy splunking,

Max

NPfister
Engager

Hi Max,

i implemented your  hints into our dashboard.

So the search macro now is

index=our_index sourcetype="our_sourcetype" earliest=-1w latest=now 
| dedup event_priority 
| sort event_priority
| eval sel_priority_blank = event_priority + " "
| table event_priority sel_priority_blank _time 
| rename event_priority as sel_priority _time as latest_record 
| convert timeformat="%+" ctime(latest_record)

And corresponding in the dashboard

      <fieldForLabel>sel_priority_blank</fieldForLabel>
      <fieldForValue>sel_priority</fieldForValue>

This works file so the problem is solved 😁

Regards, Norbert

MMahlberg
Explorer

Hi Norbert,

glad I was able to help you even after over a year. Please select my answer as the solution 🙂

greetings,
Max

0 Karma

NPfister
Engager

*works fine*

0 Karma
Get Updates on the Splunk Community!

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...

State of Splunk Careers 2024: Maximizing Career Outcomes and the Continued Value of ...

For the past four years, Splunk has partnered with Enterprise Strategy Group to conduct a survey that gauges ...

Data-Driven Success: Splunk & Financial Services

Splunk streamlines the process of extracting insights from large volumes of data. In this fast-paced world, ...