Skip to content

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

Open
@ouwe-knutselaar

Description

@ouwe-knutselaar

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions