Now problem is i have used ","(comma) as separator but in my error_msg column there are some "," present so logstash is parsing the values thinking as separator. In actual log file there are different error_msg with different number of ","(commas).
That line of data isn't properly formatted for a csv.
You have an unescaped comma and unescaped double quote in the text. So if you use a text qualifier, it will fail because of the unescaped double quote. If you don't use a text qualifier, it will fail on the unescaped comma. There is no real solution without changing the data.
I used mutate =>gsub to replace the ","(comma) present inside the column with ""(blank).
Now its parsing correctly for single event using:
input {
stdin {
type => "application1"}
}
But for reading complete file the fields are distributed across multiline .....
So how can i use multiline pattern for a csv file.
I could not find anything for multiline csv files!!!
Please suggest some solution for multiline csv file
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.