# All csv columns are saved inside message field

**URL:** <https://discuss.elastic.co/t/all-csv-columns-are-saved-inside-message-field/235474>\
**Category:** Logstash\
**Created:** [June 3, 2020, 6:20am UTC](https://discuss.elastic.co/t/all-csv-columns-are-saved-inside-message-field/235474 "2020-06-03T06:20:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Youssef\_SBAI](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/youssef_sbai/32/64242_2.png) [@Youssef\_SBAI](https://discuss.elastic.co/u/Youssef_SBAI)\
**Post date:** [June 3, 2020, 6:20am UTC](https://discuss.elastic.co/t/all-csv-columns-are-saved-inside-message-field/235474/1 "2020-06-03T06:20:49Z")

</div>

Hello,

I use logstsh and file beat for ingest my csv in elastic i have a problem the colonne is not created Elastic ingest just the first ligne of my CSV in elastic

my config logsth is:

```
input {
beats {
port => "5044"
}
}  

filter {

csv {
separator => ","
autodetect_column_names=> true

}

date {
match => ["date_plan" , "YYYY-MM-dd"]
timezone => "Europe/Paris"
}

date {
match => ["date_debut" , "YYYY-MM-dd HH:mm:ss"]
timezone => "Europe/Paris"
}

date {
match => ["date_fin" , "YYYY-MM-dd HH:mm:ss"]
timezone => "Europe/Paris"
}

mutate {
convert => { "numero_passage" => "integer" }
}

}

output {
elasticsearch {
hosts => ["http://elasticsearch:9200"]
index => "logstash-%{+YYYY.MM.dd}" 
}
stdout {
codec => rubydebug
}
 
}

```

and my config filebeat is:

```
filebeat.inputs:

- type: log
  enabled: true

  paths:  
     - /data/volumes/monitoring/logstash/logCtrlM/poc_prod.csv

exclude_lines: ['^chaine']

output.logstash:
  hosts: ["logstash:5044"]
```

---

<div class="post-metadata">

**Author:** ![Youssef\_SBAI](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/youssef_sbai/32/64242_2.png) [@Youssef\_SBAI](https://discuss.elastic.co/u/Youssef_SBAI)\
**Post date:** [June 3, 2020, 6:37am UTC](https://discuss.elastic.co/t/all-csv-columns-are-saved-inside-message-field/235474/2 "2020-06-03T06:37:54Z")

</div>

my message field is

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/f/af73515e1d525ec5c1b401c13fb6250eada54724.png)

---

<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 1, 2020, 6:37am UTC](https://discuss.elastic.co/t/all-csv-columns-are-saved-inside-message-field/235474/3 "2020-07-01T06:37:56Z")

</div>

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