# Filebeat always read log from beginning - Linux

**URL:** <https://discuss.elastic.co/t/filebeat-always-read-log-from-beginning-linux/56858>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 1, 2016, 6:46am UTC](https://discuss.elastic.co/t/filebeat-always-read-log-from-beginning-linux/56858 "2016-08-01T06:46:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![caoping](https://avatars.discourse-cdn.com/v4/letter/c/aca169/32.png) [@caoping](https://discuss.elastic.co/u/caoping)\
**Post date:** [August 1, 2016, 6:46am UTC](https://discuss.elastic.co/t/filebeat-always-read-log-from-beginning-linux/56858/1 "2016-08-01T06:46:13Z")

</div>

Hello,

I'm finding filebeat always reads log information from the beginning, so there are many duplicated log events. This issue occurred in filebeat 1.2.3 and 5.0.0-alpha. My configuration for filebeat 5.0.0-alpha is as below.

> filebeat.prospectors:

- input\_type: log  
paths:
  - /root/test/test.log  
output.file:  
path: "/root/test"  
filename: filebeat\_output.log

other settings are kept as their default values.

I saw a response from @ruflin, it said, filebeat has problem with shared file system or the mounted disks. But I don't think I'm using the shared file system or mounted disk. Actually, what I'm using is a VM on cloud.

Does anyone help me on that? Thanks a lot.

---

<div class="post-metadata">

**Author:** ![caoping](https://avatars.discourse-cdn.com/v4/letter/c/aca169/32.png) [@caoping](https://discuss.elastic.co/u/caoping)\
**Post date:** [August 1, 2016, 7:59am UTC](https://discuss.elastic.co/t/filebeat-always-read-log-from-beginning-linux/56858/2 "2016-08-01T07:59:35Z")

</div>

Found the reason. I used **vim** to edit log file for test, which caused inode changed once in a while. Now I change to use **cat** , and that issue disappeared.

---

<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 2, 2016, 10:04am UTC](https://discuss.elastic.co/t/filebeat-always-read-log-from-beginning-linux/56858/3 "2016-08-02T10:04:12Z")

</div>

Thanks for posting the answer to this!

---

<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:** [August 22, 2016, 6:46am UTC](https://discuss.elastic.co/t/filebeat-always-read-log-from-beginning-linux/56858/4 "2016-08-22T06:46:23Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
