# Filebeat lock on log file

**URL:** <https://discuss.elastic.co/t/filebeat-lock-on-log-file/130280>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 2, 2018, 3:04pm UTC](https://discuss.elastic.co/t/filebeat-lock-on-log-file/130280 "2018-05-02T15:04:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Parthgandhi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/parthgandhi/32/22742_2.png) [@Parthgandhi](https://discuss.elastic.co/u/Parthgandhi)\
**Post date:** [May 2, 2018, 3:04pm UTC](https://discuss.elastic.co/t/filebeat-lock-on-log-file/130280/1 "2018-05-02T15:04:42Z")

</div>

hi,  
We are planning to implement ELK for aggregating the IIS logs from our web servers. However since this will also involve monitoring live logs, it would be good to know if the filebeat locks the IIS logs files while shipping the logs to ES/logstash?

Thanks.

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [May 2, 2018, 4:14pm UTC](https://discuss.elastic.co/t/filebeat-lock-on-log-file/130280/2 "2018-05-02T16:14:39Z")

</div>

Filebeat does not lock files. It opens the file for reading only. And it specifies that the file can be read, written, and deleted by other applications while it has it open.

---

<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 30, 2018, 4:14pm UTC](https://discuss.elastic.co/t/filebeat-lock-on-log-file/130280/3 "2018-05-30T16:14:41Z")

</div>

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