# Merging Fields from Different Types

**URL:** <https://discuss.elastic.co/t/merging-fields-from-different-types/121434>\
**Category:** Kibana\
**Created:** [February 26, 2018, 5:54am UTC](https://discuss.elastic.co/t/merging-fields-from-different-types/121434 "2018-02-26T05:54:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thelonestargeek](https://avatars.discourse-cdn.com/v4/letter/t/77aa72/32.png) [@thelonestargeek](https://discuss.elastic.co/u/thelonestargeek)\
**Post date:** [February 26, 2018, 5:54am UTC](https://discuss.elastic.co/t/merging-fields-from-different-types/121434/1 "2018-02-26T05:54:07Z")

</div>

I have one index with two \_type , how can I pull fields from one \_type value into a record from another \_type value if a match is found?

For example:

I want to add the vendor value from:  
\_type: device\_data vendor

to

\_type: network

when the mac address matches

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [February 27, 2018, 11:04pm UTC](https://discuss.elastic.co/t/merging-fields-from-different-types/121434/2 "2018-02-27T23:04:08Z")

</div>

Are you wanting to join the data?

---

<div class="post-metadata">

**Author:** ![thelonestargeek](https://avatars.discourse-cdn.com/v4/letter/t/77aa72/32.png) [@thelonestargeek](https://discuss.elastic.co/u/thelonestargeek)\
**Post date:** [February 27, 2018, 11:20pm UTC](https://discuss.elastic.co/t/merging-fields-from-different-types/121434/3 "2018-02-27T23:20:06Z")

</div>

I understand that "joins" aren't supported (based on searching the forums), but I'm trying to figure out how to pull data from other \_types when there is a common field (such as mac address) between the documents. Is there a way to do this?

---

<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:** [March 27, 2018, 11:20pm UTC](https://discuss.elastic.co/t/merging-fields-from-different-types/121434/4 "2018-03-27T23:20:33Z")

</div>

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