# Dumping elastic data into csv or into any NOSQL through python

**URL:** <https://discuss.elastic.co/t/dumping-elastic-data-into-csv-or-into-any-nosql-through-python/146412>\
**Category:** Elasticsearch\
**Created:** [August 28, 2018, 7:16pm UTC](https://discuss.elastic.co/t/dumping-elastic-data-into-csv-or-into-any-nosql-through-python/146412 "2018-08-28T19:16:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![a3191](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@a3191](https://discuss.elastic.co/u/a3191)\
**Post date:** [August 28, 2018, 7:16pm UTC](https://discuss.elastic.co/t/dumping-elastic-data-into-csv-or-into-any-nosql-through-python/146412/1 "2018-08-28T19:16:27Z")

</div>

As we know we can't fetch more than 10000 rows in python from elastic search because of connection error issue. I want data for two hours from my elastic clusterand for every 5 minutes, I am having approx 10000 observation.

1.) Is there is any way if I can just dump the data from elastic search directly into csv or into some Nosql db with more than 10000 count.

I writing my code in python.

**I am having elasticsearch version 5**

---

<div class="post-metadata">

**Author:** ![mikebd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikebd/32/33437_2.png) [@mikebd](https://discuss.elastic.co/u/mikebd)\
**Post date:** [August 28, 2018, 7:34pm UTC](https://discuss.elastic.co/t/dumping-elastic-data-into-csv-or-into-any-nosql-through-python/146412/2 "2018-08-28T19:34:01Z")

</div>

Have a look at:

- [https://www.elastic.co/guide/en/elasticsearch/reference/5.6/search-request-scroll.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/search-request-scroll.html)
- [https://www.elastic.co/guide/en/elasticsearch/reference/5.6/search-request-search-after.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/search-request-search-after.html)

---

<div class="post-metadata">

**Author:** ![a3191](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@a3191](https://discuss.elastic.co/u/a3191)\
**Post date:** [September 20, 2018, 8:00pm UTC](https://discuss.elastic.co/t/dumping-elastic-data-into-csv-or-into-any-nosql-through-python/146412/3 "2018-09-20T20:00:54Z")

</div>

thanks for the reference but i am able to do it. my question is why i am not getting the exact count what i do have in logstash.

---

<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:** [October 18, 2018, 8:01pm UTC](https://discuss.elastic.co/t/dumping-elastic-data-into-csv-or-into-any-nosql-through-python/146412/4 "2018-10-18T20:01:01Z")

</div>

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