Skip to content

Commit

Permalink
[Filebeat S3] Change log.file.path to be nested object (elastic#21624)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiyan-sheng authored Oct 7, 2020
1 parent 00d0419 commit 030077c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions x-pack/filebeat/input/s3/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -556,8 +556,10 @@ func createEvent(log string, offset int, info s3Info, objectHash string, s3Ctx *
Fields: common.MapStr{
"message": log,
"log": common.MapStr{
"offset": int64(offset),
"file.path": constructObjectURL(info),
"offset": int64(offset),
"file": common.MapStr{
"path": constructObjectURL(info),
},
},
"aws": common.MapStr{
"s3": common.MapStr{
Expand Down

0 comments on commit 030077c

Please sign in to comment.