# How get 1million documents from elasticsearch?

**URL:** <https://discuss.elastic.co/t/how-get-1million-documents-from-elasticsearch/287446>\
**Category:** Elasticsearch\
**Created:** [October 22, 2021, 3:32pm UTC](https://discuss.elastic.co/t/how-get-1million-documents-from-elasticsearch/287446 "2021-10-22T15:32:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![psyapathy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/psyapathy/32/50265_2.png) [@psyapathy](https://discuss.elastic.co/u/psyapathy)\
**Post date:** [October 22, 2021, 3:32pm UTC](https://discuss.elastic.co/t/how-get-1million-documents-from-elasticsearch/287446/1 "2021-10-22T15:32:15Z")

</div>

Hi all!

Help me please.

I have index and i want by api get all documents (~1million) from index for my report.

I've seen the scroll, but I don't understand how to apply it to my case...

How i can do? Thank for advance.

---

<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:** [October 22, 2021, 3:54pm UTC](https://discuss.elastic.co/t/how-get-1million-documents-from-elasticsearch/287446/2 "2021-10-22T15:54:56Z")

</div>

Where do you want to consume the documents then? Write to a file? In an application?

You could read:

- [Get a consistent view of your data over time with the Elasticsearch point-in-time reader | Elastic Blog](https://www.elastic.co/blog/get-a-consistent-view-of-your-data-over-time-with-the-elasticsearch-point-in-time-reader)
- [Point in time API | Elasticsearch Guide [7.15] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/point-in-time-api.html)

Otherwise have a look at logstash with an Elasticsearch input whatever output you need.

---

<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:** [November 19, 2021, 3:54pm UTC](https://discuss.elastic.co/t/how-get-1million-documents-from-elasticsearch/287446/3 "2021-11-19T15:54:58Z")

</div>

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