# Hashmap usage in logstash filter plugin

**URL:** <https://discuss.elastic.co/t/hashmap-usage-in-logstash-filter-plugin/94821>\
**Category:** Logstash\
**Created:** [July 27, 2017, 3:11pm UTC](https://discuss.elastic.co/t/hashmap-usage-in-logstash-filter-plugin/94821 "2017-07-27T15:11:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arunvijayam](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@arunvijayam](https://discuss.elastic.co/u/arunvijayam)\
**Post date:** [July 27, 2017, 3:11pm UTC](https://discuss.elastic.co/t/hashmap-usage-in-logstash-filter-plugin/94821/1 "2017-07-27T15:11:46Z")

</div>

Hi All,

I have to populate a field in index with its full form from its short form. For this I have to use hashmap or any property holder to convert the field value from its short form to long form(full form). If a field with state code coming as TX. I have to change it to Texas in new index. How to do that?

---

<div class="post-metadata">

**Author:** ![Andrew\_Cholakian1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_cholakian1/32/3612_2.png) [@Andrew\_Cholakian1](https://discuss.elastic.co/u/Andrew_Cholakian1)\
**Post date:** [July 27, 2017, 4:18pm UTC](https://discuss.elastic.co/t/hashmap-usage-in-logstash-filter-plugin/94821/2 "2017-07-27T16:18:45Z")

</div>

The Translate plugin [https://www.elastic.co/guide/en/logstash/current/plugins-filters-translate.html](https://www.elastic.co/guide/en/logstash/current/plugins-filters-translate.html) sounds like it probably does what you want 🙂

---

<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 24, 2017, 4:18pm UTC](https://discuss.elastic.co/t/hashmap-usage-in-logstash-filter-plugin/94821/3 "2017-08-24T16:18:52Z")

</div>

Closed on August 24, 2017, 4:18pm UTC

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