# Multiple csv with different columns

**URL:** <https://discuss.elastic.co/t/multiple-csv-with-different-columns/271794>\
**Category:** Logstash\
**Created:** [April 30, 2021, 2:41pm UTC](https://discuss.elastic.co/t/multiple-csv-with-different-columns/271794 "2021-04-30T14:41:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [April 30, 2021, 3:53pm UTC](https://discuss.elastic.co/t/multiple-csv-with-different-columns/271794/2 "2021-04-30T15:53:45Z")

</div>

When you set autodetect\_column\_names true the very first event that the filter sees is parsed as column headers. Once that is done it is never re-done. If you have multiple files with different columns the only way to use autodetect\_column\_names is to pass them through different csv filters. See [this](https://discuss.elastic.co/t/logstash-cant-recognize-csv-columns/196396/2) thread.

---

_[View the full topic](https://discuss.elastic.co/t/multiple-csv-with-different-columns/271794)._
