# Join 2 indices. merge the columns

**URL:** <https://discuss.elastic.co/t/join-2-indices-merge-the-columns/191609>\
**Category:** Elasticsearch\
**Created:** [July 22, 2019, 9:44am UTC](https://discuss.elastic.co/t/join-2-indices-merge-the-columns/191609 "2019-07-22T09:44:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiewza](https://avatars.discourse-cdn.com/v4/letter/k/f07891/32.png) [@kiewza](https://discuss.elastic.co/u/kiewza)\
**Post date:** [July 22, 2019, 9:44am UTC](https://discuss.elastic.co/t/join-2-indices-merge-the-columns/191609/1 "2019-07-22T09:44:23Z")

</div>

Hi,

I would like to ask for you guys advice on how to join 2 indices and show the result containing all related columns.

Let say I have 2 indices for my application logs. the second index is static one I imported from the file.

Index No.1, maybe I have 'username', 'user\_activity', 'description' as the columns ........... this should have multiple logs incoming from my application

Index No. 2 (imported from file), it contains 'username', 'department' as the columns

for the result I'm expecting to see like 'username', 'department', 'user\_activity' and description' as the columns. because I want to know the department of each specific user in log.

could you please suggest the easiest method to proceed ?

Thanks in advanced !

---

<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:** [August 19, 2019, 9:44am UTC](https://discuss.elastic.co/t/join-2-indices-merge-the-columns/191609/2 "2019-08-19T09:44:25Z")

</div>

Closed on August 19, 2019, 9:44am UTC

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