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
When a log file contains an empty line (regex: '^$') log-courier message lines become corrupted. Symptoms include messages beginning with '\n' or if using the multiline codec this can cause an anchored RegEx to fail.
The error is in 'linereader.go' line 59:
if n := bytes.IndexByte(lr.buf[lr.start:lr.end], '\n'); n > 0 {
should be:
if n := bytes.IndexByte(lr.buf[lr.start:lr.end], '\n'); n >= 0 {
'>' should be '>='
The text was updated successfully, but these errors were encountered:
When a log file contains an empty line (regex: '^$') log-courier message lines become corrupted. Symptoms include messages beginning with '\n' or if using the multiline codec this can cause an anchored RegEx to fail.
The error is in 'linereader.go' line 59:
if n := bytes.IndexByte(lr.buf[lr.start:lr.end], '\n'); n > 0 {
should be:
if n := bytes.IndexByte(lr.buf[lr.start:lr.end], '\n'); n >= 0 {
'>' should be '>='
The text was updated successfully, but these errors were encountered: