# How to transfer data from one elastic index to other

**URL:** <https://discuss.elastic.co/t/how-to-transfer-data-from-one-elastic-index-to-other/194056>\
**Category:** Elasticsearch\
**Created:** [August 6, 2019, 4:22pm UTC](https://discuss.elastic.co/t/how-to-transfer-data-from-one-elastic-index-to-other/194056 "2019-08-06T16:22:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shubham\_dixit](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shubham_dixit/32/49446_2.png) [@shubham\_dixit](https://discuss.elastic.co/u/shubham_dixit)\
**Post date:** [August 6, 2019, 4:22pm UTC](https://discuss.elastic.co/t/how-to-transfer-data-from-one-elastic-index-to-other/194056/1 "2019-08-06T16:22:13Z")

</div>

I have different sources of data coming from files . I want to create only one index for all the sources .Suppose source A data has three fields (a,b,c) and source B data has four fields (d,e,f,g) .I want to fit them in one index .I can create index with fields (a,b,c,d,e,f,g) and insert data in them ? .Is it the right thing to do?or what options I can do more

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [August 7, 2019, 7:51am UTC](https://discuss.elastic.co/t/how-to-transfer-data-from-one-elastic-index-to-other/194056/2 "2019-08-07T07:51:04Z")

</div>

Hey,

technically this is possible. You should however try to prevent something called a [mapping explosion](https://www.elastic.co/guide/en/elasticsearch/reference/7.3/mapping.html#mapping-limit-settings). So as long as you keep the number of fields at bay, this is fine.

Is there any particular reason why you do not want to use two indices?

--Alex

---

<div class="post-metadata">

**Author:** ![shubham\_dixit](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shubham_dixit/32/49446_2.png) [@shubham\_dixit](https://discuss.elastic.co/u/shubham_dixit)\
**Post date:** [August 7, 2019, 8:07am UTC](https://discuss.elastic.co/t/how-to-transfer-data-from-one-elastic-index-to-other/194056/3 "2019-08-07T08:07:38Z")

</div>

Hi can you pls elaborate a bit .I have few report files csvs with different fields and I want to have one common index for all files .How can I achieve that? Like create one child index for every file and then merge data into parent index which has all fields ?

---

<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:** [September 4, 2019, 8:07am UTC](https://discuss.elastic.co/t/how-to-transfer-data-from-one-elastic-index-to-other/194056/4 "2019-09-04T08:07:43Z")

</div>

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