Parsing failed to due to \r\n in logstash

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.

Please show your grok filter and an example input string.