# How i can use logstash to convert json data into a csv file?

**URL:** https://discuss.elastic.co/t/how-i-can-use-logstash-to-convert-json-data-into-a-csv-file/52226
**Category:** Logstash
**Created:** [June 8, 2016, 3:07pm UTC](https://discuss.elastic.co/t/how-i-can-use-logstash-to-convert-json-data-into-a-csv-file/52226 "2016-06-08T15:07:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![abrkreddy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abrkreddy/32/13571_2.png) [@abrkreddy](https://discuss.elastic.co/u/abrkreddy)
#### Post date: [June 8, 2016, 3:07pm UTC](https://discuss.elastic.co/t/how-i-can-use-logstash-to-convert-json-data-into-a-csv-file/52226/1 "2016-06-08T15:07:03Z")

</div>

**strong text**

---

<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: [June 8, 2016, 6:26pm UTC](https://discuss.elastic.co/t/how-i-can-use-logstash-to-convert-json-data-into-a-csv-file/52226/2 "2016-06-08T18:26:33Z")

</div>

Yes, probably. Use a file input with a json codec and a csv output.

---

<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 6, 2017, 4:54am UTC](https://discuss.elastic.co/t/how-i-can-use-logstash-to-convert-json-data-into-a-csv-file/52226/3 "2017-07-06T04:54:05Z")

</div>


