File Permission denied: Filebeat 6.6.0 on Windows

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!

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