# Field enclosed in quotes

**URL:** <https://discuss.elastic.co/t/field-enclosed-in-quotes/208499>\
**Category:** Logstash\
**Created:** [November 19, 2019, 11:34am UTC](https://discuss.elastic.co/t/field-enclosed-in-quotes/208499 "2019-11-19T11:34:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![halz](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@halz](https://discuss.elastic.co/u/halz)\
**Post date:** [November 19, 2019, 11:34am UTC](https://discuss.elastic.co/t/field-enclosed-in-quotes/208499/1 "2019-11-19T11:34:03Z")

</div>

Hello

I have a csv file where one of the attributes is enclosed in quotes. It contains lyrics of songs and so it can contain the csv separator symbol ("," and ";") and line ends.

How do I parse this attribute correctly?  
Logstash throws csvparsefailure errors because of the quotes and although I've seen posts about replacing the quote\_char, doing so would mean once Logstash enconters a separator or lineend that is part of the song lyric, it will view it as another attribute.

Example of an entry in the csv file:  
artist, song, lyrics  
this is an artist name, this is a song name, "lyrics for, a song;  
it can have lineends  
etc.;"

---

<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 17, 2019, 11:34am UTC](https://discuss.elastic.co/t/field-enclosed-in-quotes/208499/2 "2019-12-17T11:34:09Z")

</div>

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