# Grok and Translate logstash

**URL:** <https://discuss.elastic.co/t/grok-and-translate-logstash/97040>\
**Category:** Logstash\
**Created:** [August 15, 2017, 12:26am UTC](https://discuss.elastic.co/t/grok-and-translate-logstash/97040 "2017-08-15T00:26:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Drift](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@Drift](https://discuss.elastic.co/u/Drift)\
**Post date:** [August 15, 2017, 12:26am UTC](https://discuss.elastic.co/t/grok-and-translate-logstash/97040/1 "2017-08-15T00:26:19Z")

</div>

Is this not a valid translate? I grok the IP address out of a message and then pass it to the translate plugin.

filter  
{

```
 grok {
   match => { "message" => "%{IP:des_ip}" }
 }

 translate {
     field => "des_ip"
     destination => "ip_map"
     dictionary_path => "/tmp/ipmap.yaml"
 }

```

}

But I am getting this error. Possibly syntax/formatting, but its not clear:

] Cannot create pipeline {:reason=\>"Expected one of #, =\> at line 57, column 11 (byte 1514) after filter

filter {\n\n grok "}

Line 57 is where filter starts

---

<div class="post-metadata">

**Author:** ![Drift](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@Drift](https://discuss.elastic.co/u/Drift)\
**Post date:** [August 15, 2017, 12:32am UTC](https://discuss.elastic.co/t/grok-and-translate-logstash/97040/2 "2017-08-15T00:32:09Z")

</div>

Nevermind, I had a misplaced brace. Sorry thread can be closed.

---

<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 12, 2017, 12:32am UTC](https://discuss.elastic.co/t/grok-and-translate-logstash/97040/3 "2017-09-12T00:32:11Z")

</div>

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