Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logstash CSV Filter CSV::MalformedCSVError: Unclosed quoted field on line 1 #66

Open
sasubillis opened this issue Apr 2, 2018 · 0 comments

Comments

@sasubillis
Copy link

When there is extra space at the end of header lines, CSV filter is throwing :exception=>#<CSV::MalformedCSVError: Unclosed quoted field on line 1.>

13:18:22.297 [[main]>worker3] WARN logstash.filters.csv - Error parsing csv {:field=>"message", :source=>"\"EVENT_TYPE\",\"TIMESTAMP\",\"REQUEST_ID\",\"ORGANIZATION_ID\" ", :exception=>#<CSV::MalformedCSVError: Unclosed quoted field on line 1.>} { "path" => "/root/logs/resp.csv", "@timestamp" => 2018-04-02T17:18:22.275Z, "@metadata" => { "path" => "/root/logs/resp.csv", "host" => "localhost.localdomain" }, "@version" => "1", "host" => "localhost.localdomain", "message" => "\"EVENT_TYPE\",\"TIMESTAMP\",\"REQUEST_ID\",\"ORGANIZATION_ID\" ", "type" => "log", "tags" => [ [0] "_csvparsefailure" ] }

For all general issues, please provide the following details for fast resolution:

  • Version: Logstash 5.6.5, logstash-filter-csv (3.0.8)

  • Operating System: CentOS 7

  • Config File (if you have sensitive info, please remove it):

  • Sample Data:
    "EVENT_TYPE","TIMESTAMP","REQUEST_ID","ORGANIZATION_ID"
    "Login","20171121084959.473","4EZCfzVyNz7hAe-qbwsdY-","00D0m000000CpL6"

  • Steps to Reproduce:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant