# Add a new field in all the existing documents in ES

**URL:** https://discuss.elastic.co/t/add-a-new-field-in-all-the-existing-documents-in-es/312739
**Category:** Elasticsearch
**Created:** [August 23, 2022, 8:10pm UTC](https://discuss.elastic.co/t/add-a-new-field-in-all-the-existing-documents-in-es/312739 "2022-08-23T20:10:23Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ImranArif](https://avatars.discourse-cdn.com/v4/letter/i/a5b964/32.png) [@ImranArif](https://discuss.elastic.co/u/ImranArif)
#### Post date: [August 23, 2022, 8:10pm UTC](https://discuss.elastic.co/t/add-a-new-field-in-all-the-existing-documents-in-es/312739/1 "2022-08-23T20:10:23Z")

</div>

Hi,

I want to update existing documents by adding a new field, the value of which will be looked up from a csv file hosted on an external path (ftp, probably). I read about the translate filter that can be used to look up value of a field from csv file, but is there a way to update all the existing documents with that field?

Thanks.

---

<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: [August 24, 2022, 8:27am UTC](https://discuss.elastic.co/t/add-a-new-field-in-all-the-existing-documents-in-es/312739/2 "2022-08-24T08:27:20Z")

</div>

Welcome to our community! 😃

You will need to reindex given you are extracting this from an external source.

---

<div class="post-metadata">

### Author: ![ImranArif](https://avatars.discourse-cdn.com/v4/letter/i/a5b964/32.png) [@ImranArif](https://discuss.elastic.co/u/ImranArif)
#### Post date: [August 24, 2022, 10:22am UTC](https://discuss.elastic.co/t/add-a-new-field-in-all-the-existing-documents-in-es/312739/3 "2022-08-24T10:22:25Z")

</div>

Thanks a lot @warkolm 🙂

Can you please explain it in a bit more detail? There is a huge number of documents in ES, so what would be the way to go about it. Also the translate filter will be used in Logstash, so does Logstash's filters get executed on indexing/reindexing a document?

My questions may be very basic, but I am new to Elastic Stack, so your help would be of immense value.

---

<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: [September 21, 2022, 10:22am UTC](https://discuss.elastic.co/t/add-a-new-field-in-all-the-existing-documents-in-es/312739/4 "2022-09-21T10:22:27Z")

</div>

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