# How to Remove the header of CSV files with Logstash?

**URL:** <https://discuss.elastic.co/t/how-to-remove-the-header-of-csv-files-with-logstash/148059>\
**Category:** Logstash\
**Created:** [September 11, 2018, 6:41am UTC](https://discuss.elastic.co/t/how-to-remove-the-header-of-csv-files-with-logstash/148059 "2018-09-11T06:41:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![akml\_kk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akml_kk/32/31069_2.png) [@akml\_kk](https://discuss.elastic.co/u/akml_kk)\
**Post date:** [September 11, 2018, 6:41am UTC](https://discuss.elastic.co/t/how-to-remove-the-header-of-csv-files-with-logstash/148059/1 "2018-09-11T06:41:27Z")

</div>

Hello, I am asking if is there an option to remove the header row of the CSV files with logstash or any other undesired rows ?

---

<div class="post-metadata">

**Author:** ![shrikantgulia](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shrikantgulia](https://discuss.elastic.co/u/shrikantgulia)\
**Post date:** [September 11, 2018, 7:14am UTC](https://discuss.elastic.co/t/how-to-remove-the-header-of-csv-files-with-logstash/148059/2 "2018-09-11T07:14:22Z")

</div>

yes,  
you can use the remove plugin

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [September 11, 2018, 7:34am UTC](https://discuss.elastic.co/t/how-to-remove-the-header-of-csv-files-with-logstash/148059/3 "2018-09-11T07:34:07Z")

</div>

> you can use the remove plugin

There's no remove plugin, but there's a drop plugin. Here's an example: [Logstash Drop header line while csv upload](https://discuss.elastic.co/t/logstash-drop-header-line-while-csv-upload/118352)

---

<div class="post-metadata">

**Author:** ![akml\_kk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akml_kk/32/31069_2.png) [@akml\_kk](https://discuss.elastic.co/u/akml_kk)\
**Post date:** [September 11, 2018, 12:23pm UTC](https://discuss.elastic.co/t/how-to-remove-the-header-of-csv-files-with-logstash/148059/4 "2018-09-11T12:23:19Z")

</div>

I found in [your documentation](https://www.elastic.co/guide/en/logstash/current/plugins-filters-csv.html#plugins-filters-csv-skip_header) another way just affect `skip_header` and `skip_empty_rows` to **true** in the filter plugin .

---

<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 9, 2018, 12:23pm UTC](https://discuss.elastic.co/t/how-to-remove-the-header-of-csv-files-with-logstash/148059/5 "2018-10-09T12:23:28Z")

</div>

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