# Correlating fields between 2 different logs/indices

**URL:** <https://discuss.elastic.co/t/correlating-fields-between-2-different-logs-indices/302294>\
**Category:** Elasticsearch\
**Created:** [April 13, 2022, 6:36am UTC](https://discuss.elastic.co/t/correlating-fields-between-2-different-logs-indices/302294 "2022-04-13T06:36:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cnwdoug23](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cnwdoug23/32/96378_2.png) [@cnwdoug23](https://discuss.elastic.co/u/cnwdoug23)\
**Post date:** [April 13, 2022, 6:36am UTC](https://discuss.elastic.co/t/correlating-fields-between-2-different-logs-indices/302294/1 "2022-04-13T06:36:38Z")

</div>

Hi I m trying to correlate different logs/indices based on a certain fields. Unfortunately the target field in these logs are not the same naming. I have found a way creating runtime field to rename the field to sync up with the other field in both logs. It works however this sacrifices a bit on the speed and performance.. Is there a better way to do this? Thank you.

---

<div class="post-metadata">

**Author:** ![cnwdoug23](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cnwdoug23/32/96378_2.png) [@cnwdoug23](https://discuss.elastic.co/u/cnwdoug23)\
**Post date:** [April 17, 2022, 8:59am UTC](https://discuss.elastic.co/t/correlating-fields-between-2-different-logs-indices/302294/2 "2022-04-17T08:59:00Z")

</div>

i found it , can use copy\_to parameter in mappings.

---

<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 15, 2022, 8:59am UTC](https://discuss.elastic.co/t/correlating-fields-between-2-different-logs-indices/302294/3 "2022-05-15T08:59:01Z")

</div>

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