Format a country code to the full name


(St├ęphane Nicoll) #1

I have a field of type String holding the country code of the request (2 letters, ISO 3166-1 alpha-2 format). I'd like Kibana to show the full name of the country rather the two letters. Is there a formatter that does that?

Thanks!


(Joe Fleming) #2

Not that ships with Kibana, no. You could write a plugin that provided that formatter though, the field formatters are pluggable.

Note that if you have a pipeline you use to get that data into Elasticsearch though, it's probably easier to just enrich the documents as you index them with the name derived from the 2 letter abbreviation. You might be able to do this using an Ingest node as well.


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.