# Format a country code to the full name

**URL:** <https://discuss.elastic.co/t/format-a-country-code-to-the-full-name/94366>\
**Category:** Kibana\
**Created:** [July 24, 2017, 4:26pm UTC](https://discuss.elastic.co/t/format-a-country-code-to-the-full-name/94366 "2017-07-24T16:26:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![snicoll](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/snicoll/32/20285_2.png) [@snicoll](https://discuss.elastic.co/u/snicoll)\
**Post date:** [July 24, 2017, 4:26pm UTC](https://discuss.elastic.co/t/format-a-country-code-to-the-full-name/94366/1 "2017-07-24T16:26:35Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)\
**Post date:** [July 24, 2017, 6:18pm UTC](https://discuss.elastic.co/t/format-a-country-code-to-the-full-name/94366/2 "2017-07-24T18:18:10Z")

</div>

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](https://www.elastic.co/guide/en/elasticsearch/reference/master/ingest.html) as well.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 21, 2017, 6:18pm UTC](https://discuss.elastic.co/t/format-a-country-code-to-the-full-name/94366/3 "2017-08-21T18:18:24Z")

</div>

Closed on August 21, 2017, 6:18pm UTC

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