You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm experiencing a similar issue.
In my case I'm tailing a fast-changing file with up to 4 milions of entries.
However it seems to me that this is more related to the speed at which the file is appended to, rather than the volume of the file itself.
Tail version: v1.4.8 and v1.4.11
OS: Ubuntu 20
Arch: x86_64
Edit:
Upon inspection, it seems that setting this might work: Tail.Config.CompleteLines = true
Describe the bug
for example , if a log file is "abcd"
sometimes it can only collect "abc"
this is my code
tails, err := tail.TailFile(fileName, tail.Config{ ReOpen: true, Follow: true, Location: &tail.SeekInfo{Offset: 0, Whence: flag.Whence}, MustExist: false, Poll: false, })
Expected behaviour
To Reproduce
sry ,I have used this to collect over a million log entries, and only a few hundred of them are difficult to reproduce.
System information
The text was updated successfully, but these errors were encountered: