Need help configuring filebit ...
One of my applications writes rotated logs to a file with a specified number of lines.
If the file contains only 3 lines, then the log at the first moment of time will look like this:
1111 2222 3333
In the second time period, the next record will take the place of the first one and the log will look like this:
4444 2222 3333
At the third moment in time, the log will look like this
4444 5555 3333
And so on...
The original file name remains unchanged, only the modification time of the file changes.
The problem is that after reading this file for the first time, the filebit no longer monitors it and no updated data is received.
Here is my current FileBeat input configuration:
filebeat.inputs: - type: log tags: ["myapp"] enabled: true paths: - C:\myapplogs\1.log
Can anyone please help how to properly configure the filebit to collect such a file?