# ElasticSearch - logstash ( 8.2.0 )

**URL:** <https://discuss.elastic.co/t/elasticsearch-logstash-8-2-0/323710>\
**Category:** Logstash\
**Created:** [January 23, 2023, 8:56am UTC](https://discuss.elastic.co/t/elasticsearch-logstash-8-2-0/323710 "2023-01-23T08:56:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nalin\_Kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nalin_kumar/32/116270_2.png) [@Nalin\_Kumar](https://discuss.elastic.co/u/Nalin_Kumar)\
**Post date:** [January 23, 2023, 8:56am UTC](https://discuss.elastic.co/t/elasticsearch-logstash-8-2-0/323710/1 "2023-01-23T08:56:49Z")

</div>

Hi, all.  
I'am new to Elasticsearch and finding the best way to store data in elastic-search engine using log stash.  
Reading tables from input JDBC and output to elastic-search.  
Currently i have create single index but different document\_type for searching without creating any parent-child relationships.

So my question is, suppose i have user , post and comment table. **Post** is linked to **User** via _owner_ field and to comments table via **comments** field. So how should i do the data modelling to fetch the data from all the tables.

Please guide me with explanation of best practise.

---

<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:** [February 20, 2023, 8:57am UTC](https://discuss.elastic.co/t/elasticsearch-logstash-8-2-0/323710/2 "2023-02-20T08:57:10Z")

</div>

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