# Translate filter dictionary error in execution

**URL:** <https://discuss.elastic.co/t/translate-filter-dictionary-error-in-execution/137620>\
**Category:** Logstash\
**Created:** [June 27, 2018, 12:55pm UTC](https://discuss.elastic.co/t/translate-filter-dictionary-error-in-execution/137620 "2018-06-27T12:55:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![juanccert](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/juanccert/32/32671_2.png) [@juanccert](https://discuss.elastic.co/u/juanccert)\
**Post date:** [June 27, 2018, 12:55pm UTC](https://discuss.elastic.co/t/translate-filter-dictionary-error-in-execution/137620/1 "2018-06-27T12:55:14Z")

</div>

I'm having problems to run logstash 6.2.2 with the translate filter:

This is my translate filter code  
\<\>

translate {  
field =\> "month"  
dictionary =\> {"01"=\>"Jan", "02"=\>"Feb"}  
destination =\> "monthletter"  
}

\</\>

I can run logstash when setting only field in the dictionary pram.  
That is :  
\<\>  
translate {  
field =\> "month"  
dictionary =\> {"01"=\>"Jan"}  
destination =\> "monthletter"  
}  
\</\>

But when I try to add more fields to the dictionary  
the execution stops due to an ERROR.

¿Any help?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [June 27, 2018, 7:30pm UTC](https://discuss.elastic.co/t/translate-filter-dictionary-error-in-execution/137620/2 "2018-06-27T19:30:49Z")

</div>

What error?!

> dictionary =\> {"01"=\>"Jan", "02"=\>"Feb"}

I think you need to remove the comma.

---

<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:** [July 25, 2018, 7:30pm UTC](https://discuss.elastic.co/t/translate-filter-dictionary-error-in-execution/137620/3 "2018-07-25T19:30:51Z")

</div>

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