# CSV files have different columns

**URL:** <https://discuss.elastic.co/t/csv-files-have-different-columns/185063>\
**Category:** Logstash\
**Created:** [June 10, 2019, 9:47pm UTC](https://discuss.elastic.co/t/csv-files-have-different-columns/185063 "2019-06-10T21:47:07Z")\
**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:** [June 10, 2019, 9:59pm UTC](https://discuss.elastic.co/t/csv-files-have-different-columns/185063/2 "2019-06-10T21:59:14Z")

</div>

Answered [here](https://discuss.elastic.co/t/using-ruby-to-count-the-number-of-fields-in-a-message-then-apply-csv-depending-on-the-count/177880/2).

---

_[View the full topic](https://discuss.elastic.co/t/csv-files-have-different-columns/185063)._
