# Translate filter to match the custom values

**URL:** <https://discuss.elastic.co/t/translate-filter-to-match-the-custom-values/97773>\
**Category:** Logstash\
**Created:** [August 21, 2017, 1:07pm UTC](https://discuss.elastic.co/t/translate-filter-to-match-the-custom-values/97773 "2017-08-21T13:07:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![malhotras](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@malhotras](https://discuss.elastic.co/u/malhotras)\
**Post date:** [August 21, 2017, 1:07pm UTC](https://discuss.elastic.co/t/translate-filter-to-match-the-custom-values/97773/1 "2017-08-21T13:07:37Z")

</div>

I would like to use the translate filter dictionary plugin to define my custom values. It seems simple to use it, though is it possible to have something like this

```
translate {

 dictionary => [

"2", "f",

"3", "16e",

"9", "bio",

"11", "wrm",

"anything other than digits mentioned already", "everything else"

 ]

  field => "format_id"
 destination => "mformat"

}

```

So, the question is, is it possible to do something like this, where we can define everything else field?? Or, a better way to have such matching??

---

<div class="post-metadata">

**Author:** ![fbaligand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fbaligand/32/5657_2.png) [@fbaligand](https://discuss.elastic.co/u/fbaligand)\
**Post date:** [August 21, 2017, 2:44pm UTC](https://discuss.elastic.co/t/translate-filter-to-match-the-custom-values/97773/2 "2017-08-21T14:44:58Z")

</div>

The "fallback" option in translate filter is done for that :  
[https://www.elastic.co/guide/en/logstash/current/plugins-filters-translate.html#plugins-filters-translate-fallback](https://www.elastic.co/guide/en/logstash/current/plugins-filters-translate.html#plugins-filters-translate-fallback)

---

<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:** [September 18, 2017, 2:45pm UTC](https://discuss.elastic.co/t/translate-filter-to-match-the-custom-values/97773/3 "2017-09-18T14:45:04Z")

</div>

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