Logstash not parsing data properly

My csv file contains ^M character ( ^ M ) characters are introduced when you use lines of text from a windows computer to Linux or Unix machine

How should i get rid of ^M character in logstash

Use mutate

mutate { gsub => [ "message", "^M", "" ] }

Where ^M is ctrl/M, entered using ctrl/V ctrl/M.

Sir , still the problem persist.

it got resolve by below command

mutate { gsub => [ "message", "[\r]", "" ] }

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