# Update log files with same document ID with filebeat (similar to PUT index/\_doc/\_id)

**URL:** <https://discuss.elastic.co/t/update-log-files-with-same-document-id-with-filebeat-similar-to-put-index-doc-id/223280>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 12, 2020, 8:26am UTC](https://discuss.elastic.co/t/update-log-files-with-same-document-id-with-filebeat-similar-to-put-index-doc-id/223280 "2020-03-12T08:26:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aksroh](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@aksroh](https://discuss.elastic.co/u/aksroh)\
**Post date:** [March 12, 2020, 8:26am UTC](https://discuss.elastic.co/t/update-log-files-with-same-document-id-with-filebeat-similar-to-put-index-doc-id/223280/1 "2020-03-12T08:26:55Z")

</div>

I am using Filebeat with Elasticsearch. I want to update log files with same Document IDs, which one can achieve with PUT request in Dev Tools (PUT /index/\_doc/\_id). How to achieve the same functionality with filebeat?

---

<div class="post-metadata">

**Author:** ![mtojek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mtojek/32/63863_2.png) [@mtojek](https://discuss.elastic.co/u/mtojek)\
**Post date:** [March 12, 2020, 11:36am UTC](https://discuss.elastic.co/t/update-log-files-with-same-document-id-with-filebeat-similar-to-put-index-doc-id/223280/2 "2020-03-12T11:36:52Z")

</div>

I'm afraid you're doing it the wrong. Filebeat is not designed to replace exisiting logs. I think you can also take a look at retention policy.

---

<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:** [April 9, 2020, 11:36am UTC](https://discuss.elastic.co/t/update-log-files-with-same-document-id-with-filebeat-similar-to-put-index-doc-id/223280/3 "2020-04-09T11:36:59Z")

</div>

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