# How to config logstash filter to remove new line in the field csv file

**URL:** <https://discuss.elastic.co/t/how-to-config-logstash-filter-to-remove-new-line-in-the-field-csv-file/247985>\
**Category:** Logstash\
**Created:** [September 9, 2020, 9:29am UTC](https://discuss.elastic.co/t/how-to-config-logstash-filter-to-remove-new-line-in-the-field-csv-file/247985 "2020-09-09T09:29:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![111207](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111207/32/53801_2.png) [@111207](https://discuss.elastic.co/u/111207)\
**Post date:** [September 9, 2020, 9:29am UTC](https://discuss.elastic.co/t/how-to-config-logstash-filter-to-remove-new-line-in-the-field-csv-file/247985/1 "2020-09-09T09:29:23Z")

</div>

Hi Everyone  
I need to parse csv file with logstash and ingest data to elasticsearch  
But the some column in csv file have new line

This is my input  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/f/9f2ab13077bde86abd5d86d1377cfeb1224bd8fb.png)

---

<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:** [October 7, 2020, 9:29am UTC](https://discuss.elastic.co/t/how-to-config-logstash-filter-to-remove-new-line-in-the-field-csv-file/247985/2 "2020-10-07T09:29:24Z")

</div>

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