Open deltaroe opened 1 year ago
The permissions checking in the tailer was specifically supposed to address this use case! Thanks for the report.
Interpreting the logs:
/pvc/logs/postfix.log
and notices it already has created a filestream for that log file.0x94420
) is woken, and 95 bytes are read, no error, then sent to the runtimeHow odd. The filestream should not be trying to reopen itself on permission denied; the tested path is that the pattern is continuously polled and the stream is created once the log file is readable.
Did the stream start out as readable and then become unreadable? Is the title of the bug somehow backwards?
Was working with a log that during rotation initially gets created with permissions such that mtail can't read it. Even if those permissions are later fixed mtail seems to be stuck in a state where it thinks it's already reading that file. The last log lines repeat forever
mtail version v3.0.0-rc51-47-g44534e9e git revision 44534e9ec10bbd09640dff6c213822eb25e21951 go version go1.20.3 go arch amd64 go os linux