# Load multiple csv files and update existing index

**URL:** <https://discuss.elastic.co/t/load-multiple-csv-files-and-update-existing-index/202324>\
**Category:** Logstash\
**Created:** [October 4, 2019, 10:16am UTC](https://discuss.elastic.co/t/load-multiple-csv-files-and-update-existing-index/202324 "2019-10-04T10:16:17Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [October 4, 2019, 2:27pm UTC](https://discuss.elastic.co/t/load-multiple-csv-files-and-update-existing-index/202324/8 "2019-10-04T14:27:24Z")

</div>

Only one would survive.

Another possible approach is shown [here](https://discuss.elastic.co/t/aggregate-problem/142572/7), which is to have logstash write out a file that contains document updates and then curl that into elasticsearch.

Yet another option would be to use a variant of [this](https://discuss.elastic.co/t/remove-fields-from-documents-based-on-their-value/200270/2). If an elasticsearch output does not do quite what you want then you can use an http filter to POST into elasticsearch.

---

_[View the full topic](https://discuss.elastic.co/t/load-multiple-csv-files-and-update-existing-index/202324)._
