# Unable to print column names in the csv file using csv filter plugin

**URL:** <https://discuss.elastic.co/t/unable-to-print-column-names-in-the-csv-file-using-csv-filter-plugin/220840>\
**Category:** Logstash\
**Created:** [February 25, 2020, 11:37am UTC](https://discuss.elastic.co/t/unable-to-print-column-names-in-the-csv-file-using-csv-filter-plugin/220840 "2020-02-25T11:37:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shwetha\_v](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shwetha_v/32/46379_2.png) [@shwetha\_v](https://discuss.elastic.co/u/shwetha_v)\
**Post date:** [February 25, 2020, 11:37am UTC](https://discuss.elastic.co/t/unable-to-print-column-names-in-the-csv-file-using-csv-filter-plugin/220840/1 "2020-02-25T11:37:54Z")

</div>

> ```
> filter{
> csv {
> columns => ["plmn", "state", "leakage_value", "MetricRSRP_values"]
> separator => ","
> autodetect_column_names => true
> autogenerate_column_names => true
> }}
> 
> ```

I have tried running the above logstash configuration. But it just doesn't print any column headers even after running it with a single logstash worker. Please help.

---

<div class="post-metadata">

**Author:** ![ITIC](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@ITIC](https://discuss.elastic.co/u/ITIC)\
**Post date:** [February 25, 2020, 11:54am UTC](https://discuss.elastic.co/t/unable-to-print-column-names-in-the-csv-file-using-csv-filter-plugin/220840/2 "2020-02-25T11:54:21Z")

</div>

Hi

Off the top of my head, could it be a collision between giving column names in your filter and having `autodetect_column_names => true`?

If you keep it to false you can give the filter your own column names and use more than 1 worker.

You can check the documentation for the csv filter here: [https://www.elastic.co/guide/en/logstash/current/plugins-filters-csv.html](https://www.elastic.co/guide/en/logstash/current/plugins-filters-csv.html)

Just a thought.

---

<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:** [March 24, 2020, 11:54am UTC](https://discuss.elastic.co/t/unable-to-print-column-names-in-the-csv-file-using-csv-filter-plugin/220840/3 "2020-03-24T11:54:23Z")

</div>

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