# Parent/Child indexing in config file

**URL:** <https://discuss.elastic.co/t/parent-child-indexing-in-config-file/50218>\
**Category:** Logstash\
**Created:** [May 17, 2016, 12:21pm UTC](https://discuss.elastic.co/t/parent-child-indexing-in-config-file/50218 "2016-05-17T12:21:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PascalR](https://avatars.discourse-cdn.com/v4/letter/p/258eb7/32.png) [@PascalR](https://discuss.elastic.co/u/PascalR)\
**Post date:** [May 17, 2016, 12:21pm UTC](https://discuss.elastic.co/t/parent-child-indexing-in-config-file/50218/1 "2016-05-17T12:21:14Z")

</div>

Hi everyone!

Is there a way to setup a parent child relation in Logstash?  
I have a MySQL database as input and I want to use the foreign key of some of my tables as index for a parent\_id.

NOTE: Using Logstash 2.3.1and also the newest builds of ES

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 17, 2016, 2:43pm UTC](https://discuss.elastic.co/t/parent-child-indexing-in-config-file/50218/2 "2016-05-17T14:43:41Z")

</div>

> [@PascalR](#):
>
> Is there a way to setup a parent child relation in Logstash?

No, that is a short coming of LS.

---

<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:** [July 6, 2017, 4:57am UTC](https://discuss.elastic.co/t/parent-child-indexing-in-config-file/50218/3 "2017-07-06T04:57:25Z")

</div>


