# Logstash failing for csv load with double quotes

**URL:** https://discuss.elastic.co/t/logstash-failing-for-csv-load-with-double-quotes/210213
**Category:** Logstash
**Created:** [December 2, 2019, 4:04pm UTC](https://discuss.elastic.co/t/logstash-failing-for-csv-load-with-double-quotes/210213 "2019-12-02T16:04:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![krishna\_bhargav](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krishna_bhargav/32/50877_2.png) [@krishna\_bhargav](https://discuss.elastic.co/u/krishna_bhargav)
#### Post date: [December 2, 2019, 4:04pm UTC](https://discuss.elastic.co/t/logstash-failing-for-csv-load-with-double-quotes/210213/1 "2019-12-02T16:04:00Z")

</div>

Am using csv filter pluggin with separator =\> '|', it works if we remove the quotes for "QA". Ay work around to make this work or is this limitation with CSV filter.

Here is the sample load data:

QA8\_COMMON|1044|AC|101|AUTOMATION-FDX1044NEWACCT|FDx "QA" Test Account@ &1044|TEST123|11|11|-1|606501|359006|0| QA8\_COMMON|1608991|AC|2000|AUTOMATION-FDX1044NEWACCT|FDx "QA" Test Account@ &1044||11|11||875247|410628|176593|141596

Logastash error :

[2019-12-02T10:31:19,273][WARN][logstash.filters.csv] Error parsing csv {:field=\>"message", :source=\>"QA8\_COMMON|1608991|AC|2000|AUTOMATION-FDX1044NEWACCT|FDx "QA" $ Test Account@ &1044||11|11||875247|410628|176593|141596", :exception=\>#\<CSV::MalformedCSVError: Illegal quoting in line 1.\>}

[2019-12-02T10:31:19,291][WARN][logstash.filters.csv] Error parsing csv {:field=\>"message", :source=\>"QA8\_COMMON|1044|AC|101|AUTOMATION-FDX1044NEWACCT|FDx "QA" $ Test Account@ &1044|TEST123|11|11|-1|606501|359006|0|", :exception=\>#\<CSV::MalformedCSVError: Illegal quoting in line 1.\>}

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [December 2, 2019, 4:49pm UTC](https://discuss.elastic.co/t/logstash-failing-for-csv-load-with-double-quotes/210213/2 "2019-12-02T16:49:06Z")

</div>

The csv filter requires that the entire field be in quotes if there are quotes in it. A workaround would be to change the quote\_char option to something does not occur in the line.

---

<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: [December 30, 2019, 4:49pm UTC](https://discuss.elastic.co/t/logstash-failing-for-csv-load-with-double-quotes/210213/3 "2019-12-30T16:49:07Z")

</div>

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