# Logstash translate plugin

**URL:** https://discuss.elastic.co/t/logstash-translate-plugin/46131
**Category:** Logstash
**Created:** [April 2, 2016, 12:02pm UTC](https://discuss.elastic.co/t/logstash-translate-plugin/46131 "2016-04-02T12:02:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![brain](https://avatars.discourse-cdn.com/v4/letter/b/439d5e/32.png) [@brain](https://discuss.elastic.co/u/brain)
#### Post date: [April 2, 2016, 12:02pm UTC](https://discuss.elastic.co/t/logstash-translate-plugin/46131/1 "2016-04-02T12:02:06Z")

</div>

with the translate plugin, are the fields in the dictionary a strict/exact match, or will a "contains" also match?

so if my yaml file had something like:

"[blah.com](http://blah.com)" : "true"

would a log line with [www.blah.com](http://www.blah.com) also match? if not can I do something like \*.blah.com in the yaml file?

---

<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: [April 2, 2016, 6:12pm UTC](https://discuss.elastic.co/t/logstash-translate-plugin/46131/2 "2016-04-02T18:12:10Z")

</div>

As this is a Logstash question rather than an ES question I suggest you edit your post and change the category to Logstash.

As for your question, have a look at the translate filter's [`regex` option](https://www.elastic.co/guide/en/logstash/current/plugins-filters-translate.html#plugins-filters-translate-regex).

---

<div class="post-metadata">

### Author: ![brain](https://avatars.discourse-cdn.com/v4/letter/b/439d5e/32.png) [@brain](https://discuss.elastic.co/u/brain)
#### Post date: [April 3, 2016, 1:21am UTC](https://discuss.elastic.co/t/logstash-translate-plugin/46131/3 "2016-04-03T01:21:22Z")

</div>

ah, thanks. its been a long day! 🙂

i've tried; "\.blah\.com": "true" but its not giving me the results i expect.. is there any documentation on what the regex should look like?

i've also tried "/(?i)\.blah\.com$": "true", however it complains about the first . being an unknown escape character?

---

<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 6, 2017, 5:04am UTC](https://discuss.elastic.co/t/logstash-translate-plugin/46131/4 "2017-07-06T05:04:14Z")

</div>


