# Update multiple docs using Logstash

**URL:** https://discuss.elastic.co/t/update-multiple-docs-using-logstash/61134
**Category:** Logstash
**Created:** [September 21, 2016, 1:04pm UTC](https://discuss.elastic.co/t/update-multiple-docs-using-logstash/61134 "2016-09-21T13:04:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ydkadri](https://avatars.discourse-cdn.com/v4/letter/y/f07891/32.png) [@ydkadri](https://discuss.elastic.co/u/ydkadri)
#### Post date: [September 21, 2016, 1:04pm UTC](https://discuss.elastic.co/t/update-multiple-docs-using-logstash/61134/1 "2016-09-21T13:04:52Z")

</div>

Hi

I have two data sources which will be ingested separately using Logstash into elasticsearch, one containing page data from larger documents, the other containing metadata around those same documents

e.g.  
source 1: {"name": "Lord of the rings", "page" 1, "content": "Three rings for elven kings under the sky..."}  
source 2: {"Author": "JRR Tolkein"}

Creating each document from source 1 is done through logstash, however is there a simple way to then apply the metadata to each page

Desired output:  
{"name": "Lord of the rings", "page" 1, "content": "Three rings for elven kings under the sky...", "Author": "JRR Tolkein"}  
{"name": "Lord of the rings", "page" 2, "content": "...", "Author": "JRR Tolkein"}  
etc

Thanks in advance

---

<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:37am UTC](https://discuss.elastic.co/t/update-multiple-docs-using-logstash/61134/2 "2017-07-06T04:37:35Z")

</div>


