# Combine data from different index in kibana

**URL:** https://discuss.elastic.co/t/combine-data-from-different-index-in-kibana/299647
**Category:** Elasticsearch
**Created:** [March 14, 2022, 4:32pm UTC](https://discuss.elastic.co/t/combine-data-from-different-index-in-kibana/299647 "2022-03-14T16:32:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Lumiere](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lumiere/32/103020_2.png) [@Lumiere](https://discuss.elastic.co/u/Lumiere)
#### Post date: [March 14, 2022, 4:32pm UTC](https://discuss.elastic.co/t/combine-data-from-different-index-in-kibana/299647/1 "2022-03-14T16:32:48Z")

</div>

Hello, i'm new user and i use kibana (v 7.14.2).  
I am trying to combine data from differents index in the another index or view.  
Please, it is possible?

For exemple,  
First index :  
{  
"\_index":" index-1",  
"\_source": {  
"job\_id": "A",  
"toto": "toto\_value",  
"workflow\_id" : "300"  
}

Second index :  
{  
"\_index":" index-2",  
"\_source": {  
"workflow\_id" : "300",  
"status": "completed",  
"information": "blalba"  
}

And i trying to have  
=\> output

{  
"\_index":" index-output",  
"\_source": {  
"job\_id": "A",  
"toto": "toto\_value",  
"workflow\_id" : "300",  
"status": "completed",  
"information": "blalba"  
}

Can you help me?  
Thanks

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [March 14, 2022, 4:50pm UTC](https://discuss.elastic.co/t/combine-data-from-different-index-in-kibana/299647/2 "2022-03-14T16:50:07Z")

</div>

That's not possible as is. That would be doing a join in Elasticsearch but Elasticsearch is not a relational database.

Instead, you should change the way you are thinking your dataset and do the join before indexing documents.  
Exactly what you wrote. Index instead:

```auto
POST /index-output/_doc
{
 "job_id": "A",
 "toto": "toto_value",
 "workflow_id" : "300",
 "status": "completed",
 "information": "blalba"
}

```

---

<div class="post-metadata">

### Author: ![Lumiere](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lumiere/32/103020_2.png) [@Lumiere](https://discuss.elastic.co/u/Lumiere)
#### Post date: [March 15, 2022, 7:44am UTC](https://discuss.elastic.co/t/combine-data-from-different-index-in-kibana/299647/3 "2022-03-15T07:44:53Z")

</div>

Thanks you for your message. Unfortunately i don't have the possiblity to change the dataset. I'm not responsable for indexing, i can just use the data.  
I thought it was possible to have a table view with differents index.

---

<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: [April 12, 2022, 7:45am UTC](https://discuss.elastic.co/t/combine-data-from-different-index-in-kibana/299647/4 "2022-04-12T07:45:37Z")

</div>

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