# Enrich-existing-elasticsearch-index-with-new-fields-from-logstash

**URL:** https://discuss.elastic.co/t/enrich-existing-elasticsearch-index-with-new-fields-from-logstash/72750
**Category:** Elasticsearch
**Created:** [January 25, 2017, 10:10am UTC](https://discuss.elastic.co/t/enrich-existing-elasticsearch-index-with-new-fields-from-logstash/72750 "2017-01-25T10:10:05Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Maher.Glenza](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@Maher.Glenza](https://discuss.elastic.co/u/Maher.Glenza)
#### Post date: [January 25, 2017, 10:10am UTC](https://discuss.elastic.co/t/enrich-existing-elasticsearch-index-with-new-fields-from-logstash/72750/1 "2017-01-25T10:10:05Z")

</div>

hi ,  
if any one know if i can and how to receive for the first time a log in logstash filter it then save it in ES , next step is to receive another type of logs filter it then add its fields to the first one saved in ES using an ID or sthing  
thanks a lot !!

---

<div class="post-metadata">

### Author: ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)
#### Post date: [January 25, 2017, 10:18am UTC](https://discuss.elastic.co/t/enrich-existing-elasticsearch-index-with-new-fields-from-logstash/72750/2 "2017-01-25T10:18:32Z")

</div>

You can use the update API [1]  
This talk [2] gives examples on using scroll and update APIs to efficiently update positions as new log records arrive.

[1] [https://www.elastic.co/guide/en/elasticsearch/reference/5.1/docs-update.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.1/docs-update.html)  
[2] [https://www.youtube.com/watch?v=yBf7oeJKH2Y](https://www.youtube.com/watch?v=yBf7oeJKH2Y)

---

<div class="post-metadata">

### Author: ![Maher.Glenza](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@Maher.Glenza](https://discuss.elastic.co/u/Maher.Glenza)
#### Post date: [January 25, 2017, 10:44am UTC](https://discuss.elastic.co/t/enrich-existing-elasticsearch-index-with-new-fields-from-logstash/72750/3 "2017-01-25T10:44:13Z")

</div>

ok i will see thank you mark nice piste to focus on

---

<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 22, 2017, 10:44am UTC](https://discuss.elastic.co/t/enrich-existing-elasticsearch-index-with-new-fields-from-logstash/72750/4 "2017-02-22T10:44:25Z")

</div>

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