# Cannot export whole database into csv

**URL:** <https://discuss.elastic.co/t/cannot-export-whole-database-into-csv/80020>\
**Category:** Elasticsearch\
**Created:** [March 26, 2017, 4:54am UTC](https://discuss.elastic.co/t/cannot-export-whole-database-into-csv/80020 "2017-03-26T04:54:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jake\_Johnson](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@Jake\_Johnson](https://discuss.elastic.co/u/Jake_Johnson)\
**Post date:** [March 26, 2017, 4:54am UTC](https://discuss.elastic.co/t/cannot-export-whole-database-into-csv/80020/1 "2017-03-26T04:54:36Z")

</div>

I cannot export the whole database into a csv file.

Open to any method. I've tried using the python tool: [https://github.com/taraslayshchuk/es2csv/blob/master/README.rst](https://github.com/taraslayshchuk/es2csv/blob/master/README.rst)

but I get: elasticsearch.exceptions.ImproperlyConfigured: Root certificates are missing for certificate validation. Either pass them in using the ca\_certs parameter or install certifi to use it automatically.

I also have Kibana, but I don't think they support exporting the entire database.

help?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 31, 2017, 6:18am UTC](https://discuss.elastic.co/t/cannot-export-whole-database-into-csv/80020/2 "2017-03-31T06:18:43Z")

</div>

You can may be use logstash for that.

- Input: [https://www.elastic.co/guide/en/logstash/current/plugins-inputs-elasticsearch.html](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-elasticsearch.html)
- Output: [https://www.elastic.co/guide/en/logstash/current/plugins-outputs-csv.html](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-csv.html)

---

<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:** [April 28, 2017, 6:18am UTC](https://discuss.elastic.co/t/cannot-export-whole-database-into-csv/80020/3 "2017-04-28T06:18:46Z")

</div>

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