# Filebeat.yml for a csv file

**URL:** <https://discuss.elastic.co/t/filebeat-yml-for-a-csv-file/358822>\
**Category:** Elastic Agent\
**Tags:** filebeat\
**Created:** [May 6, 2024, 12:05pm UTC](https://discuss.elastic.co/t/filebeat-yml-for-a-csv-file/358822 "2024-05-06T12:05:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![uhxqc](https://avatars.discourse-cdn.com/v4/letter/u/a6a055/32.png) [@uhxqc](https://discuss.elastic.co/u/uhxqc)\
**Post date:** [May 6, 2024, 12:05pm UTC](https://discuss.elastic.co/t/filebeat-yml-for-a-csv-file/358822/1 "2024-05-06T12:05:08Z")

</div>

Hello,

I've been trying to write a filebeat.yml for a csv file with data in the following format:

`"ParameterA","ParameterB","ParameterC","ParameterD","ParameterE" "DataA1","DataB1","DataC1","DataD1","DataE1" "DataA2","DataB2","DataC2","DataD2","DataE2" "DataA3","DataB3","DataC3","DataD3","DataE3" ...`

I've been able to successfully upload the same file using the 'Machine Learning \>Data Visualizer' and extract each of the field individually and run alerts on them separately.

But when I try to use filebeat to upload the same file and extract the data, I am able to generate different documents for each line in the csv file but  
**all the data in the csv file are added to the same field "_Message_"**

What changes will I have to make in Filebeat.yml to get individual fields from the CSV file?
