tail icon indicating copy to clipboard operation
tail copied to clipboard

Prevent a full file read when a file is reopened after truncation

Open ouwe-knutselaar opened this issue 1 year ago • 3 comments

L.S.

I have an issue with Tail. We have an application that watches a file to send changes to an event bus to generate alerts. The issue is that when the file is truncated and reopened it re-reads the file. The problem is that in our case also all the lines are send to the event bus again. I was digging in to the docs but I could not find a ways to prevent this.

So is there an option in Tail to go to directly to the end of a file without fully reading it when a file is reopened after a truncate?

ouwe-knutselaar avatar Aug 28 '24 05:08 ouwe-knutselaar