# Translate filter plugin

**URL:** <https://discuss.elastic.co/t/translate-filter-plugin/167971>\
**Category:** Logstash\
**Created:** [February 12, 2019, 7:34am UTC](https://discuss.elastic.co/t/translate-filter-plugin/167971 "2019-02-12T07:34:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 12, 2019, 8:01am UTC](https://discuss.elastic.co/t/translate-filter-plugin/167971/2 "2019-02-12T08:01:43Z")

</div>

If you want to enrich with more complex data you can always format the string as JSON and then use a JSON filter to parse it:

```auto
input {
  generator {
    lines => ['test']
    count => 1
  } 
} 

filter{
  translate {
    field => "message"
    dictionary => {
      "test" => '{"a":1,"b":2}'
    }
  }

  json {
    source => "translation"
    remove_field => ["translation"]
  }
}

output { stdout { codec => rubydebug} }

```

---

_[View the full topic](https://discuss.elastic.co/t/translate-filter-plugin/167971)._
