# Parent/child with logstash 2.0 or 2.1

**URL:** <https://discuss.elastic.co/t/parent-child-with-logstash-2-0-or-2-1/35609>\
**Category:** Logstash\
**Created:** [November 25, 2015, 9:43pm UTC](https://discuss.elastic.co/t/parent-child-with-logstash-2-0-or-2-1/35609 "2015-11-25T21:43:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fchantrel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fchantrel/32/6204_2.png) [@fchantrel](https://discuss.elastic.co/u/fchantrel)\
**Post date:** [November 25, 2015, 9:43pm UTC](https://discuss.elastic.co/t/parent-child-with-logstash-2-0-or-2-1/35609/1 "2015-11-25T21:43:16Z")

</div>

Hi,  
I would like to migrate my elasticsearch cluster to 2.x but I am blocked with a problem on indexing child documents with Logstash.  
In 1.6 I had something working but parent/child relation has changed since 2.0 and I don't know if it is possible in 2.x versions.  
I tried to use a \_parent field with the value of the parent id but it did'nt work.  
Does someone has an example of logstash config working with Elasticsearch 2.x and with childs documents ?

Thanks.

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [November 25, 2015, 11:33pm UTC](https://discuss.elastic.co/t/parent-child-with-logstash-2-0-or-2-1/35609/2 "2015-11-25T23:33:30Z")

</div>

This functionality was just barely added in [https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/307](https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/307)

A version of the plugin with this update will be released soon.

---

<div class="post-metadata">

**Author:** ![fchantrel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fchantrel/32/6204_2.png) [@fchantrel](https://discuss.elastic.co/u/fchantrel)\
**Post date:** [November 26, 2015, 8:04pm UTC](https://discuss.elastic.co/t/parent-child-with-logstash-2-0-or-2-1/35609/3 "2015-11-26T20:04:16Z")

</div>

Thanks for your answer, that's a good news.

---

<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, 5:21am UTC](https://discuss.elastic.co/t/parent-child-with-logstash-2-0-or-2-1/35609/4 "2017-07-06T05:21:05Z")

</div>


