# Filebeat - avoid data duplication during switch over

**URL:** https://discuss.elastic.co/t/filebeat-avoid-data-duplication-during-switch-over/293319
**Category:** Beats
**Tags:** filebeat
**Created:** [January 3, 2022, 7:37am UTC](https://discuss.elastic.co/t/filebeat-avoid-data-duplication-during-switch-over/293319 "2022-01-03T07:37:23Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sandeepmuthathi](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@sandeepmuthathi](https://discuss.elastic.co/u/sandeepmuthathi)
#### Post date: [January 3, 2022, 7:37am UTC](https://discuss.elastic.co/t/filebeat-avoid-data-duplication-during-switch-over/293319/1 "2022-01-03T07:37:23Z")

</div>

I've a scenario where I need to read the file contents from an NFS mount point using filebeat. Also, I need to install another filebeat instance on another system incase the first machine (where i installed filebeat) goes for a maintenance. How can I switch the filebeat instance, without data duplication in the elasticseach? Note that both the machines has the same NFS share mounted locally.

---

<div class="post-metadata">

### Author: ![seanziee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seanziee/32/45151_2.png) [@seanziee](https://discuss.elastic.co/u/seanziee)
#### Post date: [January 4, 2022, 10:11pm UTC](https://discuss.elastic.co/t/filebeat-avoid-data-duplication-during-switch-over/293319/2 "2022-01-04T22:11:54Z")

</div>

You could start to explicitly set the \_id field... that way is the best way to prevent duplicates typically. Make sure that they go into the same index though!

---

<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 1, 2022, 10:12pm UTC](https://discuss.elastic.co/t/filebeat-avoid-data-duplication-during-switch-over/293319/3 "2022-02-01T22:12:42Z")

</div>

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