Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.17](backport #33568) handle EOF on single line content #34991

Merged
merged 13 commits into from
Jun 5, 2023
Prev Previous commit
Next Next commit
Fix typo
tdancheva committed May 29, 2023
commit f47b905c45c9471b70279e5fa9404c25bb26b6ba
2 changes: 1 addition & 1 deletion x-pack/filebeat/input/awss3/s3_objects.go
Original file line number Diff line number Diff line change
@@ -360,7 +360,7 @@ func createEvent(message string, offset int64, obj s3EventV2, objectHash string,
event.SetID(objectID(objectHash, offset))

if len(meta) > 0 {
_, err = event.Fields.Put("aws.s3.metadata", meta)
_, err := event.Fields.Put("aws.s3.metadata", meta)
if err == nil {
return event, fmt.Errorf("error updating/adding AWS S3 metadata: %w", err)
}