# Customized decode\_csv\_fields in filebeat

**URL:** <https://discuss.elastic.co/t/customized-decode-csv-fields-in-filebeat/238410>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 24, 2020, 9:03am UTC](https://discuss.elastic.co/t/customized-decode-csv-fields-in-filebeat/238410 "2020-06-24T09:03:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![job52](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@job52](https://discuss.elastic.co/u/job52)\
**Post date:** [June 24, 2020, 9:03am UTC](https://discuss.elastic.co/t/customized-decode-csv-fields-in-filebeat/238410/1 "2020-06-24T09:03:51Z")

</div>

Hello everyone,

I started using filebeat to send logs in csv format to elasticsearch, but I didn't find any way to configure filebeat to tell it where to take the headers of csv files, and I don't want to pass through Ingest Pipelines elasticsearch for example which will be static, I want filebeat to take these headers in the file itself (first line) or in a conf file.  
for ex here is my csv logs :

```auto
firstname,lastname
chris,paul
baptiste,jean

```

and i want it parse like

```auto
{firstname:chris;lastname:paul}
{firstname:baptiste;lastname:jean}

```

, so I took over the filebeat project on github and I added a new similar processor decode\_csv\_fields to implement this feature, I compiled and tested it seems to work.  
And so I wanted to know how to perform units on this processor and if i can make a pull request

---

<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:** [July 22, 2020, 11:03am UTC](https://discuss.elastic.co/t/customized-decode-csv-fields-in-filebeat/238410/2 "2020-07-22T11:03:56Z")

</div>

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