# \[Ingest Node\] Unrecognized character escape ';' (code 59)

**URL:** https://discuss.elastic.co/t/ingest-node-unrecognized-character-escape-code-59/84098
**Category:** Logstash
**Created:** [April 29, 2017, 9:12pm UTC](https://discuss.elastic.co/t/ingest-node-unrecognized-character-escape-code-59/84098 "2017-04-29T21:12:36Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![joaoantoniopereira](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@joaoantoniopereira](https://discuss.elastic.co/u/joaoantoniopereira)
#### Post date: [April 29, 2017, 9:12pm UTC](https://discuss.elastic.co/t/ingest-node-unrecognized-character-escape-code-59/84098/1 "2017-04-29T21:12:36Z")

</div>

Hi,

I am trying to use ingest node to parse lines from filebeat.  
I used grok debugger to get to the pattern.  
My json file is like this:

{  
"description": "Test pipeline",  
"processors": [  
{  
"grok": {  
"field": "message",  
"patterns": ["%{YEAR:year}-%{MONTHNUM:month}-%{MONTHDAY:day} %{HOUR:hour}:%{MINUTE:minute}:%{SECOND:second};(?[^;]_);(?[^;]_);(?[^;]_);(?[^;]_);(?[^;]_);(?\<x\_7\>[^;]_);(?\<x\_8\>[^;]_);(?\<x\_9\>[^;]_);(?\<x\_10\>[^;]_);(?\<response\_time\>[^;]_)"]  
}  
}  
]  
}

When I run :  
curl -H 'Content-Type: application/json' -XPUT '[http://localhost:9200/\_ingest/pipeline/test-pipeline](http://localhost:9200/_ingest/pipeline/test-pipeline)' -d@ingest.json

I get  
{"error":{"root\_cause":[{"type":"parse\_exception","reason":"Failed to parse content to map"}],"type":"parse\_exception","reason":"Failed to parse content to map","caused\_by":{"type":"json\_parse\_exception","reason":"Unrecognized character escape ';' (code 59)\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@3168841; line: 1, column: 247]"}},"status":400}

Why is this??! Thanks! João

---

<div class="post-metadata">

### Author: ![eperry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eperry/32/551_2.png) [@eperry](https://discuss.elastic.co/u/eperry)
#### Post date: [April 29, 2017, 10:47pm UTC](https://discuss.elastic.co/t/ingest-node-unrecognized-character-escape-code-59/84098/2 "2017-04-29T22:47:26Z")

</div>

I don't see an issue eyeballing it

go to [https://grokdebug.herokuapp.com/](https://grokdebug.herokuapp.com/) and work out your syntax , there is obviously something in there that is wrong

also, don't know why you are escaping the ; it is not a regex character so it does not have to be escaped

---

<div class="post-metadata">

### Author: ![eperry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eperry/32/551_2.png) [@eperry](https://discuss.elastic.co/u/eperry)
#### Post date: [April 29, 2017, 10:48pm UTC](https://discuss.elastic.co/t/ingest-node-unrecognized-character-escape-code-59/84098/3 "2017-04-29T22:48:37Z")

</div>

oh the message says it all ......"reason":"Unrecognized character escape ';'

don't escape the ;

---

<div class="post-metadata">

### Author: ![joaoantoniopereira](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@joaoantoniopereira](https://discuss.elastic.co/u/joaoantoniopereira)
#### Post date: [April 29, 2017, 11:31pm UTC](https://discuss.elastic.co/t/ingest-node-unrecognized-character-escape-code-59/84098/4 "2017-04-29T23:31:44Z")

</div>

Thank you! It works now!

---

<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: [May 27, 2017, 11:41pm UTC](https://discuss.elastic.co/t/ingest-node-unrecognized-character-escape-code-59/84098/5 "2017-05-27T23:41:17Z")

</div>

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