Translate filter - substitute not working / bug

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?

You missed something. Add

override => true

to the filter options.

Yes, thank you. Now it is working :slight_smile:

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