Skip to content

Commit

Permalink
[Filebeat S3] Change log.file.path to be nested object (#21624) (#21636)
Browse files Browse the repository at this point in the history
(cherry picked from commit 030077c)
  • Loading branch information
kaiyan-sheng committed Oct 7, 2020
1 parent 284ae18 commit 20cd0af
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 20cd0af

Please sign in to comment.