# Autodetect column is taking data row as column name instead of header

**URL:** <https://discuss.elastic.co/t/autodetect-column-is-taking-data-row-as-column-name-instead-of-header/126383>\
**Category:** Logstash\
**Created:** [April 2, 2018, 7:38am UTC](https://discuss.elastic.co/t/autodetect-column-is-taking-data-row-as-column-name-instead-of-header/126383 "2018-04-02T07:38:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ysl](https://avatars.discourse-cdn.com/v4/letter/y/4af34b/32.png) [@ysl](https://discuss.elastic.co/u/ysl)\
**Post date:** [April 2, 2018, 7:38am UTC](https://discuss.elastic.co/t/autodetect-column-is-taking-data-row-as-column-name-instead-of-header/126383/1 "2018-04-02T07:38:00Z")

</div>

Hello, I am running Logstash from command line with the config file below. I am not getting the first row header but the record (second row data after header) has appeared as column names. Please help. Thanks

input {  
file {  
path =\> "/home/data/file.csv"  
start\_position =\> "beginning"  
sincedb\_path =\> "/dev/null"  
}  
}  
filter {  
csv {  
separator =\> ","  
autodetect\_column\_names =\> "true"  
}

---

<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 30, 2018, 7:52am UTC](https://discuss.elastic.co/t/autodetect-column-is-taking-data-row-as-column-name-instead-of-header/126383/2 "2018-04-30T07:52:07Z")

</div>

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