tail
tail copied to clipboard
Log collection row loss and duplication
- Loss situation: When the file flush and file renaming occur very close to each other, part of the content of the old file may be lost.
- Duplication situation: If a write event and a rename event for a file occur close in time, and the write notification is marked as a truncated event, then if collection starts from the beginning, the first part of the new file will be collected twice.