# Filebeat input rotation file

**URL:** https://discuss.elastic.co/t/filebeat-input-rotation-file/175947
**Category:** Beats
**Created:** [April 9, 2019, 4:46am UTC](https://discuss.elastic.co/t/filebeat-input-rotation-file/175947 "2019-04-09T04:46:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Yungyoung\_Ok](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yungyoung_ok/32/43465_2.png) [@Yungyoung\_Ok](https://discuss.elastic.co/u/Yungyoung_Ok)
#### Post date: [April 9, 2019, 4:46am UTC](https://discuss.elastic.co/t/filebeat-input-rotation-file/175947/1 "2019-04-09T04:46:43Z")

</div>

Can a filebeat read a rotating file without missing or duplicate data ?

example...

file list  
log\_file1  
log\_file2

When log\_file1 is full, it writes data to log\_file2.  
When log\_file2 is full, it writes data to log\_file1 again.

When rereading log\_file1 from filebeat, the data is duplicated by reading the log twice.  
What settings should I add, can I fix this?

Here is my filebeat.yml

filebeat.inputs:

- type: log  
enabled: true  
paths:
  - C:\log\_file1.txt
  - C:\log\_file2.txt

---

<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: [May 7, 2019, 6:46am UTC](https://discuss.elastic.co/t/filebeat-input-rotation-file/175947/2 "2019-05-07T06:46:45Z")

</div>

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