# Export all document to either JSON or CSV

**URL:** <https://discuss.elastic.co/t/export-all-document-to-either-json-or-csv/88322>\
**Category:** Elasticsearch\
**Created:** [June 5, 2017, 7:27pm UTC](https://discuss.elastic.co/t/export-all-document-to-either-json-or-csv/88322 "2017-06-05T19:27:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jorzallan](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@jorzallan](https://discuss.elastic.co/u/jorzallan)\
**Post date:** [June 5, 2017, 7:27pm UTC](https://discuss.elastic.co/t/export-all-document-to-either-json-or-csv/88322/1 "2017-06-05T19:27:11Z")

</div>

Hello, I know this might be a basic question, but I believe everybody has to learn from some point.

I am trying hard to learn Elasticsearch and as I was going through the documentation at this page

[https://www.elastic.co/guide/en/elasticsearch/reference/current/\_exploring\_your\_data.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/_exploring_your_data.html)

I learned how to load a JSON data and form an index. But later an question arose in my head, how would I be able to export the whole index that I created (here the bank) to CSV or a JSON. Since I couldn't find a solution in Kibana, I searched Github and came across this python script 'es2csv'.

[https://pypi.python.org/pypi/es2csv/2.4.1](https://pypi.python.org/pypi/es2csv/2.4.1)

I installed it, but I can't make an output to a format that it should appear in a CSV file. Please, could you help me understand what should I do because it is vital for me to learn.

---

<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 3, 2017, 7:27pm UTC](https://discuss.elastic.co/t/export-all-document-to-either-json-or-csv/88322/2 "2017-07-03T19:27:15Z")

</div>

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