Skip to content

Commit

Permalink
[Filebeat S3] Change log.file.path to be nested object (#21624) (#22672)
Browse files Browse the repository at this point in the history
(cherry picked from commit 030077c)

Co-authored-by: kaiyan-sheng <kaiyan.sheng@elastic.co>
  • Loading branch information
marc-gr and kaiyan-sheng authored Nov 19, 2020
1 parent 651093e commit 0a06a03
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 @@ -552,8 +552,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 0a06a03

Please sign in to comment.