# Index Data Ingestion

**URL:** <https://discuss.elastic.co/t/index-data-ingestion/301830>\
**Category:** Elasticsearch\
**Created:** [April 7, 2022, 5:28am UTC](https://discuss.elastic.co/t/index-data-ingestion/301830 "2022-04-07T05:28:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikasp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikasp/32/90872_2.png) [@vikasp](https://discuss.elastic.co/u/vikasp)\
**Post date:** [April 7, 2022, 5:28am UTC](https://discuss.elastic.co/t/index-data-ingestion/301830/1 "2022-04-07T05:28:13Z")

</div>

Hi,  
I am trying to understand how the ingestion works.  
Lets say I created an index with 6 primary shards, 1 replica.  
and I am ingesting to the cluster (say logstash is continuously pushing data) to a coordinating only node.

Can somebody help me understand how the data flows from when the co-ordinating node receives the data.  
How the co-ordinator node forwards the incoming data to different shards,  
does it fill one after another or how?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [April 7, 2022, 5:36am UTC](https://discuss.elastic.co/t/index-data-ingestion/301830/2 "2022-04-07T05:36:23Z")

</div>

Each document in the bulk request gets assigned a document ID if one is not provided. The ID is hashed in order to determine which shard the document should go to. The bulk request is then split up and forwarded in parallel to the appropriate primary shards.

---

<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:** [May 5, 2022, 5:36am UTC](https://discuss.elastic.co/t/index-data-ingestion/301830/3 "2022-05-05T05:36:26Z")

</div>

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