# Integrating with mongodb, logstash, elasticsearch and kibana

**URL:** https://discuss.elastic.co/t/integrating-with-mongodb-logstash-elasticsearch-and-kibana/245761
**Category:** Kibana
**Created:** [August 20, 2020, 12:20pm UTC](https://discuss.elastic.co/t/integrating-with-mongodb-logstash-elasticsearch-and-kibana/245761 "2020-08-20T12:20:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![soviek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/soviek/32/91491_2.png) [@soviek](https://discuss.elastic.co/u/soviek)
#### Post date: [August 20, 2020, 12:20pm UTC](https://discuss.elastic.co/t/integrating-with-mongodb-logstash-elasticsearch-and-kibana/245761/1 "2020-08-20T12:20:51Z")

</div>

What is the best way to integrate more than one collection of mongodb into Kibana via Logstash and Elasticsearch. I tried below 2 options but can't see all fields in Kibana. Because of that I am not able to join 4 collections.  
Option1 - In single configuration file (Logstash) I combined all 4 collections.  
Option2 - Create separate 4 Indices and in Kibana combine all 4 Indices to create single Indices

Highly appreciate if anyone has any other solution.

---

<div class="post-metadata">

### Author: ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)
#### Post date: [August 20, 2020, 1:27pm UTC](https://discuss.elastic.co/t/integrating-with-mongodb-logstash-elasticsearch-and-kibana/245761/2 "2020-08-20T13:27:29Z")

</div>

It really depends on how you intend to use the data. You need to denormalize it and come up with a data architecture that will support your use case.

It could be best to to combine them all in 1 index or use 4 different ones. I'd first start with what you want to do with the data and see if the structure supports it or not.

---

<div class="post-metadata">

### Author: ![soviek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/soviek/32/91491_2.png) [@soviek](https://discuss.elastic.co/u/soviek)
#### Post date: [August 23, 2020, 4:26pm UTC](https://discuss.elastic.co/t/integrating-with-mongodb-logstash-elasticsearch-and-kibana/245761/3 "2020-08-23T16:26:10Z")

</div>

Thanks Aaron for your response..  
Request you to please elaborate it.. To make it more clear, This is my collections mapping..

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/d/8ddd9c010dcc8a8c0954a9b7cd5b856d31c097ce.png)

Could you please tell me what could be Logstash configuration, so that I can see join between these tables in Kibana.

---

<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 20, 2020, 4:26pm UTC](https://discuss.elastic.co/t/integrating-with-mongodb-logstash-elasticsearch-and-kibana/245761/4 "2020-09-20T16:26:32Z")

</div>

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