# Filebeat locking application logs

**URL:** <https://discuss.elastic.co/t/filebeat-locking-application-logs/324912>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 7, 2023, 2:04pm UTC](https://discuss.elastic.co/t/filebeat-locking-application-logs/324912 "2023-02-07T14:04:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anirbaan\_Chowdhury](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anirbaan_chowdhury/32/74057_2.png) [@Anirbaan\_Chowdhury](https://discuss.elastic.co/u/Anirbaan_Chowdhury)\
**Post date:** [February 7, 2023, 2:04pm UTC](https://discuss.elastic.co/t/filebeat-locking-application-logs/324912/1 "2023-02-07T14:04:55Z")

</div>

Fillebeat in Windows. I have read topic [Filebeat locking files - Elastic Stack / Beats - Discuss the Elastic Stack](https://discuss.elastic.co/t/filebeat-locking-files/70501)

Hi Experts,

Our application (whose logs are harvested by filebeat) repeatedly throws permission denied error.

The application doesn't request exclusive access to its logs.

We tried updating a logfile manually via wordpad while filebeat was running but we weren't able to do so. (see pic below)

![Screenshot 2023-02-07 at 19.28.14](https://us1.discourse-cdn.com/elastic/original/3X/6/b/6b1a8281900ceef5f76bdb9f5470ef3bc5b8f1f7.png)

However, we were able to update the same file after stopping filebeat.

From handle.exe logs we can see that filebeat opens the logs in RWD mode

```auto
filebeat.exe pid: 3368 test\m33adm
   38: File (RW-)   
  338: File (RWD) D:\usr\sap\M33\D00\work\dev_w5
  358: File (RW-) C:\Infra\fb7.8.1\filebeat-7.8.1-windows-x86_64\filebeat-7.8.1-windows-x86_64\data\filebeat.lock
  378: File (RWD) D:\usr\sap\M33\SUM\abap\tmp\hello.txt
  388: File (RWD) D:\usr\sap\M33\SUM\abap\tmp\SAPup_error.xml
  38C: File (RWD) D:\usr\sap\M33\D00\work\sapstart.env
  390: File (RWD) D:\usr\sap\M33\D00\work\dev_w6
  3A0: File (RWD) D:\usr\sap\M33\D00\work\VMCavailable.log
  3A4: File (RWD) D:\usr\sap\M33\D00\work\wd.pid
  3A8: File (RWD) D:\usr\sap\M33\SUM\abap\log\SAPup_troubleticket.zip
  3C0: File (RWD) D:\usr\sap\M33\D00\work\kill.sap.cmd
  410: File (RWD) D:\usr\sap\M33\D00\work\dev_w2

```

Please, could you advise here?

Regards,  
Anirbaan

---

<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:** [March 7, 2023, 4:05pm UTC](https://discuss.elastic.co/t/filebeat-locking-application-logs/324912/2 "2023-03-07T16:05:23Z")

</div>

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