I installed filebeat to monitor logs. Below are the environment details:
OS: windows 7
filebeat version: 5.1.1
- input_type: log
I am using powershell script to generate log file:
Add-content -path C:\myfiles\ELKStack\Learning\filebeattest.log "$(Get-Date) - This is log message $count"
Filebeat locks log file and powershell script is generating below error while writing to log:
The process cannot access the file 'C:\myfiles\ELKStack\Learning\filebeattest.log' because it is being used by another process.
If filebeat continues to lock the file how can other processes access it? How to resolve the issue?