# File Permission denied: Filebeat 6.6.0 on Windows

**URL:** <https://discuss.elastic.co/t/file-permission-denied-filebeat-6-6-0-on-windows/198205>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [September 5, 2019, 9:23am UTC](https://discuss.elastic.co/t/file-permission-denied-filebeat-6-6-0-on-windows/198205 "2019-09-05T09:23:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vavdoshka](https://avatars.discourse-cdn.com/v4/letter/v/bbce88/32.png) [@vavdoshka](https://discuss.elastic.co/u/vavdoshka)\
**Post date:** [September 5, 2019, 9:23am UTC](https://discuss.elastic.co/t/file-permission-denied-filebeat-6-6-0-on-windows/198205/1 "2019-09-05T09:23:15Z")

</div>

Hi All,

I know that the filebeat does not require an exclusive lock on the file, but I faced with a not clear behavior on a windows machine with running filebeat as a windows service.

I have a log file (SomeTextFile.log) which is created by python process on the local drive. The python process is terminated after. Then in a few milliseconds, the new process tries to append something to the file, but it gets the permission denied the exception on opening the file.

```
PS D:\Handle> whoami
test
PS D:\Handle> .\handle64.exe -u SomeTextFile.log
filebeat.exe pid: 2184 type: File VM-CI\test 320: D:\data\log\SomeTextFile.log
PS D:\Handle> python -c "open('D:\data\log\SomeTextFile.log', 'a')"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
IOError: [Errno 13] Permission denied: 'D:\\data\\log\\SomeTextFile.log'
PS D:\Handle> .\handle64.exe -u SomeTextFile.log
filebeat.exe pid: 2184 type: File VM-CI\test 320: D:\data\log\SomeTextFile.log

```

Any hints on how to understand this behaviour would be very valuable, thanks!

---

<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:** [October 3, 2019, 9:27am UTC](https://discuss.elastic.co/t/file-permission-denied-filebeat-6-6-0-on-windows/198205/2 "2019-10-03T09:27:30Z")

</div>

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