# Parsing data presented in the form of a table

**URL:** <https://discuss.elastic.co/t/parsing-data-presented-in-the-form-of-a-table/273143>\
**Category:** Logstash\
**Created:** [May 17, 2021, 8:37am UTC](https://discuss.elastic.co/t/parsing-data-presented-in-the-form-of-a-table/273143 "2021-05-17T08:37:41Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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 23, 2021, 4:46pm UTC](https://discuss.elastic.co/t/parsing-data-presented-in-the-form-of-a-table/273143/8 "2021-06-23T16:46:25Z")

</div>

> [@San9](#):
>
> Another question, I have several types of files with a different number of columns, can I somehow differentiate them among themselves by the number of columns in order to use the correct headers for each of them in the future?

See [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) for an example.

---

_[View the full topic](https://discuss.elastic.co/t/parsing-data-presented-in-the-form-of-a-table/273143)._
