Skip to content

[Filebeat] S3 input module should trim the delimiter of log line  #19853

@kwinstonix

Description

@kwinstonix
  • Bug

For confirmed bugs, please report:

  • Version: 7.8.0

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

Metadata

Metadata

Assignees

Labels

Team:PlatformsLabel for the Integrations - Platforms teambug

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions