For confirmed bugs, please report:
Here log contains delimiter \n, so each event message filed also has \n.
I think It is better to trim \n, just like the behavior of reading log files
|
// handle s3 objects that are not json content-type |
|
offset := 0 |
|
for { |
|
log, err := reader.ReadString('\n') |
|
if log == "" { |
|
break |
|
} |
|
|
|
if err == io.EOF { |
|
// create event for last line |
For confirmed bugs, please report:
Here
logcontains delimiter\n, so each event message filed also has\n.I think It is better to trim
\n, just like the behavior of reading log filesbeats/x-pack/filebeat/input/s3/input.go
Lines 477 to 486 in d0f7058