# Pulling data from two indices

**URL:** <https://discuss.elastic.co/t/pulling-data-from-two-indices/143574>\
**Category:** Kibana\
**Created:** [August 8, 2018, 6:06pm UTC](https://discuss.elastic.co/t/pulling-data-from-two-indices/143574 "2018-08-08T18:06:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![riteshun](https://avatars.discourse-cdn.com/v4/letter/r/ad7895/32.png) [@riteshun](https://discuss.elastic.co/u/riteshun)\
**Post date:** [August 8, 2018, 6:06pm UTC](https://discuss.elastic.co/t/pulling-data-from-two-indices/143574/1 "2018-08-08T18:06:15Z")

</div>

Hi,

We have one index prod-logs-sa where we have some data and a field AppId. This field has GUID data. Another index prod-applications in where Appname and AppId are kept. Now I want to view data from that shows AppName alongwith data from index prod-logs-sa. How can this be done.

Thanks

---

<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:** [August 9, 2018, 2:05am UTC](https://discuss.elastic.co/t/pulling-data-from-two-indices/143574/2 "2018-08-09T02:05:39Z")

</div>

The best answer is really that you need to denormalize your data by including the data from prod-application you want in prod-logs-sa. Alternatively, you could utilize the `include_in_parent` mapping. More details outlined here: [https://github.com/elastic/kibana/issues/1084](https://github.com/elastic/kibana/issues/1084)

---

<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 6, 2018, 2:05am UTC](https://discuss.elastic.co/t/pulling-data-from-two-indices/143574/3 "2018-09-06T02:05:39Z")

</div>

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