# Aggregation bucket for 1 Million documents in Kibana

**URL:** <https://discuss.elastic.co/t/aggregation-bucket-for-1-million-documents-in-kibana/300420>\
**Category:** Kibana\
**Created:** [March 23, 2022, 8:18am UTC](https://discuss.elastic.co/t/aggregation-bucket-for-1-million-documents-in-kibana/300420 "2022-03-23T08:18:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandeep\_Raju](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@Sandeep\_Raju](https://discuss.elastic.co/u/Sandeep_Raju)\
**Post date:** [March 23, 2022, 8:18am UTC](https://discuss.elastic.co/t/aggregation-bucket-for-1-million-documents-in-kibana/300420/1 "2022-03-23T08:18:56Z")

</div>

Hi all,

I have to process 1M records and download 1M records.

So is it practical to use a bucket size of 1Million so that when i download CSV report , it must have 1 Million documents?

Or is there another approach for this?

---

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [March 23, 2022, 1:34pm UTC](https://discuss.elastic.co/t/aggregation-bucket-for-1-million-documents-in-kibana/300420/2 "2022-03-23T13:34:43Z")

</div>

I don't think you can do that with Kibana (but I may be wrong). To download such large amount of data you can take a look to this other post

> [@How to download data from an elasticsearch index](https://discuss.elastic.co/t/how-to-download-data-from-an-elasticsearch-index/269354):
>
> Hi, guy's How can i download all the data of an index in elasticsearch? it downloads the CSV but it does not show all the data, I need to download the whole index, please help me?

with ideas on using Elasticsearch API directly (scrolling, paged search, etc) or third party tooling.

---

<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 20, 2022, 1:35pm UTC](https://discuss.elastic.co/t/aggregation-bucket-for-1-million-documents-in-kibana/300420/3 "2022-04-20T13:35:16Z")

</div>

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