# CSV Reader using LogStash. Unable to Read CSV

**URL:** <https://discuss.elastic.co/t/csv-reader-using-logstash-unable-to-read-csv/221491>\
**Category:** Logstash\
**Created:** [February 28, 2020, 9:31pm UTC](https://discuss.elastic.co/t/csv-reader-using-logstash-unable-to-read-csv/221491 "2020-02-28T21:31:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![keshavl](https://avatars.discourse-cdn.com/v4/letter/k/5f8ce5/32.png) [@keshavl](https://discuss.elastic.co/u/keshavl)\
**Post date:** [February 28, 2020, 9:31pm UTC](https://discuss.elastic.co/t/csv-reader-using-logstash-unable-to-read-csv/221491/1 "2020-02-28T21:31:06Z")

</div>

HI All,  
I am trying to read CSV files and below is my logstash configuration. I am new to it hence I have just kept it simple as below.

![image](https://us1.discourse-cdn.com/elastic/original/3X/3/e/3eb65d39e7ac908c297da47e21684d95c032e75d.png)

Error I face after starting logstash is

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/a/7ac0b265c6826acb650364cb6635336bb980c820.png)

---

<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:** [February 28, 2020, 11:17pm UTC](https://discuss.elastic.co/t/csv-reader-using-logstash-unable-to-read-csv/221491/2 "2020-02-28T23:17:50Z")

</div>

You are missing a } to close the input {} section.

---

<div class="post-metadata">

**Author:** ![keshavl](https://avatars.discourse-cdn.com/v4/letter/k/5f8ce5/32.png) [@keshavl](https://discuss.elastic.co/u/keshavl)\
**Post date:** [February 28, 2020, 11:25pm UTC](https://discuss.elastic.co/t/csv-reader-using-logstash-unable-to-read-csv/221491/3 "2020-02-28T23:25:29Z")

</div>

Thanks .. It was so silly of me.. I am sorry to bother you on such silly mistakes

---

<div class="post-metadata">

**Author:** ![keshavl](https://avatars.discourse-cdn.com/v4/letter/k/5f8ce5/32.png) [@keshavl](https://discuss.elastic.co/u/keshavl)\
**Post date:** [February 29, 2020, 12:50pm UTC](https://discuss.elastic.co/t/csv-reader-using-logstash-unable-to-read-csv/221491/4 "2020-02-29T12:50:19Z")

</div>

HI Badger,  
I have a CSV file which has RecordSeperator(\u0001E) as column separator within it PFB .

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/5/65368ae72ef2215a96a16f6dd91e899e7a23cfdb.png)

I tried to use gsub to replace "\u0001E" with "|||" and then use CSV filter as below, highlighted in Red braces but its not helping, any suggestion to do it in simple way ? please suggest

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/c/9c4e772d86d38d2bea10f441a6b11ade8f8a8422.png)

---

<div class="post-metadata">

**Author:** ![keshavl](https://avatars.discourse-cdn.com/v4/letter/k/5f8ce5/32.png) [@keshavl](https://discuss.elastic.co/u/keshavl)\
**Post date:** [March 4, 2020, 8:38pm UTC](https://discuss.elastic.co/t/csv-reader-using-logstash-unable-to-read-csv/221491/5 "2020-03-04T20:38:39Z")

</div>

HI Badger,  
Do you have any update for me please ? Any suggestions that may pave the way forward will help

---

<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:** [April 1, 2020, 8:45pm UTC](https://discuss.elastic.co/t/csv-reader-using-logstash-unable-to-read-csv/221491/6 "2020-04-01T20:45:00Z")

</div>

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