# Error messages from elastic search with \\r\\n instead of actual new lines

**URL:** <https://discuss.elastic.co/t/error-messages-from-elastic-search-with-r-n-instead-of-actual-new-lines/186603>\
**Category:** Logstash\
**Created:** [June 20, 2019, 6:49am UTC](https://discuss.elastic.co/t/error-messages-from-elastic-search-with-r-n-instead-of-actual-new-lines/186603 "2019-06-20T06:49:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gautiery](https://avatars.discourse-cdn.com/v4/letter/g/958977/32.png) [@gautiery](https://discuss.elastic.co/u/gautiery)\
**Post date:** [June 20, 2019, 6:49am UTC](https://discuss.elastic.co/t/error-messages-from-elastic-search-with-r-n-instead-of-actual-new-lines/186603/1 "2019-06-20T06:49:13Z")

</div>

Hi

I am using logstash to update a document in an elasticsearch index. When there is a problem (here within a painless script in my logstash conf file) I get errors similar to the one below. The loggstash logger does not display new lines but keeps instead \n\r. Is there a way to have the logs on multiple lines instead on just one line (with \n\r).

Thanks in advance for your help

[2019-06-19T17:48:49,747][WARN][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=\>400, :action=\>["update", {:\_id=\>"4f787579-fba8-438a-8b08-b7ba55cb5a99", :\_index=\>"logstash-test", :\_type=\>"\_doc", :routing=\>nil, :retry\_on\_conflict=\>1}, #LogStash::Event:0x5e09885b], :response=\>{"update"=\>{"\_index"=\>"logstash-test", "\_type"=\>"\_doc", "\_id"=\>"4f787579-fba8-438a-8b08-b7ba55cb5a99", "status"=\>400, "error"=\>{"type"=\>"illegal\_argument\_exception", "reason"=\>"failed to execute script", "caused\_by"=\>{"type"=\>"script\_exception", "reason"=\>"runtime error", "script\_stack"=\>["access = access [path];\r\n }\r\n } \r\n \r\n // we update the document \r\n def ", "^---- HERE"], "script"=\>"def i\_parameter = 0; \r\n

---

<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 18, 2019, 6:49am UTC](https://discuss.elastic.co/t/error-messages-from-elastic-search-with-r-n-instead-of-actual-new-lines/186603/2 "2019-07-18T06:49:14Z")

</div>

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