# I have ISO3 country codes in ES, how can I transfrom to ISO2 country code for vector MAP visualization?

**URL:** <https://discuss.elastic.co/t/i-have-iso3-country-codes-in-es-how-can-i-transfrom-to-iso2-country-code-for-vector-map-visualization/69676>\
**Category:** Kibana\
**Created:** [December 21, 2016, 2:15pm UTC](https://discuss.elastic.co/t/i-have-iso3-country-codes-in-es-how-can-i-transfrom-to-iso2-country-code-for-vector-map-visualization/69676 "2016-12-21T14:15:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephane\_Lapierre](https://avatars.discourse-cdn.com/v4/letter/s/b3f665/32.png) [@Stephane\_Lapierre](https://discuss.elastic.co/u/Stephane_Lapierre)\
**Post date:** [December 21, 2016, 2:15pm UTC](https://discuss.elastic.co/t/i-have-iso3-country-codes-in-es-how-can-i-transfrom-to-iso2-country-code-for-vector-map-visualization/69676/1 "2016-12-21T14:15:00Z")

</div>

I have ISO3 country codes in ES, how can I transfrom to ISO2 country codes for vector MAP visualization?

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [December 21, 2016, 4:36pm UTC](https://discuss.elastic.co/t/i-have-iso3-country-codes-in-es-how-can-i-transfrom-to-iso2-country-code-for-vector-map-visualization/69676/2 "2016-12-21T16:36:28Z")

</div>

Hi Stephane,

I think this is a use-case for [Logstash](https://www.elastic.co/guide/en/logstash/current/getting-started-with-logstash.html). You'll probably need to use an [input plugin](https://www.elastic.co/guide/en/logstash/current/input-plugins.html), [output plugin](https://www.elastic.co/guide/en/logstash/current/output-plugins.html), and [translate filter plugin](https://www.elastic.co/guide/en/logstash/current/plugins-filters-translate.html) to convert the country codes to ISO2.

Please let me know if this helps!

Thanks,  
CJ

---

<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:** [January 18, 2017, 4:36pm UTC](https://discuss.elastic.co/t/i-have-iso3-country-codes-in-es-how-can-i-transfrom-to-iso2-country-code-for-vector-map-visualization/69676/3 "2017-01-18T16:36:48Z")

</div>

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