# Parsing failed to due to \\r\\n in logstash

**URL:** <https://discuss.elastic.co/t/parsing-failed-to-due-to-r-n-in-logstash/42490>\
**Category:** Logstash\
**Created:** [February 23, 2016, 11:46am UTC](https://discuss.elastic.co/t/parsing-failed-to-due-to-r-n-in-logstash/42490 "2016-02-23T11:46:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rohan\_Jain](https://avatars.discourse-cdn.com/v4/letter/r/e36b37/32.png) [@Rohan\_Jain](https://discuss.elastic.co/u/Rohan_Jain)\
**Post date:** [February 23, 2016, 11:46am UTC](https://discuss.elastic.co/t/parsing-failed-to-due-to-r-n-in-logstash/42490/1 "2016-02-23T11:46:23Z")

</div>

In my log files \r\n is coming which is windows newline and in unix system logstash is unable to parse this and i am getting grokparsefailure. How can i solve this error. Unix recognizes \n as newline.

---

<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:** [February 23, 2016, 6:51pm UTC](https://discuss.elastic.co/t/parsing-failed-to-due-to-r-n-in-logstash/42490/2 "2016-02-23T18:51:02Z")

</div>

Please show your grok filter and an example input string.

---

<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:09am UTC](https://discuss.elastic.co/t/parsing-failed-to-due-to-r-n-in-logstash/42490/4 "2017-07-06T05:09:59Z")

</div>


