# Merging data from multiple index patterns

**URL:** <https://discuss.elastic.co/t/merging-data-from-multiple-index-patterns/248365>\
**Category:** APM\
**Tags:** java\
**Created:** [September 11, 2020, 5:02pm UTC](https://discuss.elastic.co/t/merging-data-from-multiple-index-patterns/248365 "2020-09-11T17:02:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anjana1](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@anjana1](https://discuss.elastic.co/u/anjana1)\
**Post date:** [September 11, 2020, 5:02pm UTC](https://discuss.elastic.co/t/merging-data-from-multiple-index-patterns/248365/1 "2020-09-11T17:02:04Z")

</div>

**Kibana version** : 7.6

**Elasticsearch version** : 7.6

**APM Server version** : 7.3.2

**APM Agent language and version** : java 1.9.0

**Fresh install or upgraded from other version?** fresh install

**Is there anything special in your setup?** For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc. :----no

I wanted to merge the data from another index pattern(say abc) over to apm index. If I do that will I get all the data from abc index pattern over to apm index ?  
If yes how can I merge that

---

<div class="post-metadata">

**Author:** ![simitt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simitt/32/106406_2.png) [@simitt](https://discuss.elastic.co/u/simitt)\
**Post date:** [September 14, 2020, 6:25am UTC](https://discuss.elastic.co/t/merging-data-from-multiple-index-patterns/248365/2 "2020-09-14T06:25:46Z")

</div>

Hi @anjana1,  
if you have an index with a name different to `apm*`, that is holding APM data you could have a look at the [Elasticsearch reindexing API](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html). In case you are reindexing into a new APM index you should also ensure to have the APM templates set up for it before you start reindexing.

---

<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 5, 2020, 2:26am UTC](https://discuss.elastic.co/t/merging-data-from-multiple-index-patterns/248365/3 "2020-10-05T02:26:04Z")

</div>

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