# Translate filter - substitute not working / bug

**URL:** https://discuss.elastic.co/t/translate-filter-substitute-not-working-bug/182320
**Category:** Logstash
**Created:** [May 22, 2019, 8:24pm UTC](https://discuss.elastic.co/t/translate-filter-substitute-not-working-bug/182320 "2019-05-22T20:24:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![nufje](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nufje/32/44284_2.png) [@nufje](https://discuss.elastic.co/u/nufje)
#### Post date: [May 22, 2019, 8:24pm UTC](https://discuss.elastic.co/t/translate-filter-substitute-not-working-bug/182320/1 "2019-05-22T20:24:51Z")

</div>

Hello i'am using the logstash translate filter, but substitution on same source field is not working.  
For example i want to change color in product\_name\_search from "Iphone black" to "iphone zwart"

When i use this snippet nothing happens and product\_name\_search is still "iphone black"

```
        translate {
            field => "product_name_search"
            destination => "product_name_search"
            exact => false
            dictionary => "/usr/share/logstash/colors.yml"
        }

```

When i translate to another destination field it is working, thus:

```
        translate {
            field => "product_name_search"
            destination => "product_name_color_changed"
            exact => false
            dictionary => "/usr/share/logstash/colors.yml"
        }

```

And now in the destination field is "iphone zwart", the result i want but in the product\_name\_color\_changed field instead of the product\_name\_search field.  
Do i miss something or is this a bug?

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [May 22, 2019, 9:12pm UTC](https://discuss.elastic.co/t/translate-filter-substitute-not-working-bug/182320/2 "2019-05-22T21:12:16Z")

</div>

You missed something. Add

```
override => true

```

to the filter options.

---

<div class="post-metadata">

### Author: ![nufje](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nufje/32/44284_2.png) [@nufje](https://discuss.elastic.co/u/nufje)
#### Post date: [May 22, 2019, 9:26pm UTC](https://discuss.elastic.co/t/translate-filter-substitute-not-working-bug/182320/3 "2019-05-22T21:26:12Z")

</div>

Yes, thank you. Now it is working 🙂

---

<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: [June 19, 2019, 9:26pm UTC](https://discuss.elastic.co/t/translate-filter-substitute-not-working-bug/182320/4 "2019-06-19T21:26:14Z")

</div>

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