# Joining two files in elasticsearch

**URL:** https://discuss.elastic.co/t/joining-two-files-in-elasticsearch/73343
**Category:** Elasticsearch
**Created:** [January 31, 2017, 10:35am UTC](https://discuss.elastic.co/t/joining-two-files-in-elasticsearch/73343 "2017-01-31T10:35:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![amol\_sonawane1](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@amol\_sonawane1](https://discuss.elastic.co/u/amol_sonawane1)
#### Post date: [January 31, 2017, 10:35am UTC](https://discuss.elastic.co/t/joining-two-files-in-elasticsearch/73343/1 "2017-01-31T10:35:38Z")

</div>

Hi

I want to index two files and after that I wanted to join the result from both the files.

Suppose I have one or more common columns in both the files and have no of columns which are different in both the files. but while retrieving or visualizing the data in kibana, I wanted to the show result on basis of common columns just like the join queries in RDBMS.

Is it possible in Elasticsearch & kibana??

Thanks in advance.

---

<div class="post-metadata">

### Author: ![mnozawa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mnozawa/32/15091_2.png) [@mnozawa](https://discuss.elastic.co/u/mnozawa)
#### Post date: [February 1, 2017, 11:25am UTC](https://discuss.elastic.co/t/joining-two-files-in-elasticsearch/73343/2 "2017-02-01T11:25:39Z")

</div>

Hi,

I don't understand everything you want, maybe "terms aggregation" for the common column (field in Elasticsearch) support you.

[https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html)

---

<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 1, 2017, 11:25am UTC](https://discuss.elastic.co/t/joining-two-files-in-elasticsearch/73343/3 "2017-03-01T11:25:49Z")

</div>

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