# Csv output plugin prints wrong stuff

**URL:** <https://discuss.elastic.co/t/csv-output-plugin-prints-wrong-stuff/65574>\
**Category:** Logstash\
**Created:** [November 10, 2016, 1:00am UTC](https://discuss.elastic.co/t/csv-output-plugin-prints-wrong-stuff/65574 "2016-11-10T01:00:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [November 14, 2016, 6:43am UTC](https://discuss.elastic.co/t/csv-output-plugin-prints-wrong-stuff/65574/2 "2016-11-14T06:43:23Z")

</div>

Seems like the same problem as in the thread below.

> [@Export from elasticsearch to csv problem. Where I am wrong?](https://discuss.elastic.co/t/export-from-elasticsearch-to-csv-problem-where-i-am-wrong/65558):
>
> Hi have the following logstash config file: input { elasticsearch { hosts =\> ["localhost"] index =\> "myindex" type =\> "mytype" query =\> '{"query" : { "match\_all" : {} }}' } } output { csv { fields =\> [my\_fields\_array] path =\> "export.csv csv\_options =\> {"col\_sep" =\> "\t" "row\_sep" =\> "\r\n"} } } Opening export.csv i don't get any mapped data fields but only a list of something like: 2016-11-02T07:41:15.917Z %{host} %{message}2016-11-02T07:41:16.708Z %{host}... Any idea about …

---

_[View the full topic](https://discuss.elastic.co/t/csv-output-plugin-prints-wrong-stuff/65574)._
