# CSV MalformedCSVError: Illegal quoting in line

**URL:** <https://discuss.elastic.co/t/csv-malformedcsverror-illegal-quoting-in-line/291639>\
**Category:** Logstash\
**Created:** [December 13, 2021, 11:55am UTC](https://discuss.elastic.co/t/csv-malformedcsverror-illegal-quoting-in-line/291639 "2021-12-13T11:55:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mangeshs](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@mangeshs](https://discuss.elastic.co/u/mangeshs)\
**Post date:** [December 13, 2021, 11:55am UTC](https://discuss.elastic.co/t/csv-malformedcsverror-illegal-quoting-in-line/291639/1 "2021-12-13T11:55:42Z")

</div>

I have used CSV filter to log the events  
my sample data is

```auto
2021-12-09 12:12:09,155 INFO com.tdg.box.incrindex.service.PastEventProcessor [Thread-14] Captured Event	false	dbf5b71c-faa1-4e73-b8db-bf057002e3f5	UPLOAD	17472455835	Sumie Miyabayashi	smiyabayashi@alnylam.com	Thu Dec 09 12:09:08 IST 2021	file	893851594129	Four Seasons Hotel Tokyo at Marunouchi 2022 Corporate Rate Offer.pdf	149199275152	私のBox Notes	17472455835	Sumie Miyabayashi	{"item_type":"file","item_id":"893851594129","item_name":"Four Seasons Hotel Tokyo at Marunouchi 2022 Corporate Rate Offer.pdf","parent":{"type":"folder","name":"私のBox Notes","id":"149199275152"},"owned_by":{"type":"user","id":"17472455835","name":"Sumie Miyabayashi","login":"smiyabayashi@alnylam.com"}}

```

my config is  
csv {  
columns =\> ["msg","scope","event\_id","event\_type","creator\_id","creator\_name","creator\_login","event\_timestamp","item\_type","item\_id","item\_name","parent\_id","parent\_name","owner\_id","owner\_name","event\_json"]  
separator =\> " "  
skip\_empty\_columns =\> true  
}

---

<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 13, 2021, 4:59pm UTC](https://discuss.elastic.co/t/csv-malformedcsverror-illegal-quoting-in-line/291639/2 "2021-12-13T16:59:45Z")

</div>

See [this](https://discuss.elastic.co/t/exception-csv-illegal-quoting-in-line-1/291437/2) answer. The JSON is the problem.

---

<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:** [January 10, 2022, 5:00pm UTC](https://discuss.elastic.co/t/csv-malformedcsverror-illegal-quoting-in-line/291639/3 "2022-01-10T17:00:24Z")

</div>

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