Format a country code to the full name

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!

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.

1 Like

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