Skip to content

Commit

Permalink
condense setting related.ip
Browse files Browse the repository at this point in the history
  • Loading branch information
leehinman committed Apr 29, 2020
1 parent bda7330 commit 8b62c56
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions x-pack/filebeat/input/netflow/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,7 @@ func flowToBeatEvent(flow record.Record) (event beat.Event) {
event.Fields["network"] = ecsNetwork
}
if len(relatedIP) > 0 {
ecsRelated := common.MapStr{}
ecsRelated["ip"] = relatedIP
event.Fields["related"] = ecsRelated
event.Fields["related"] = common.MapStr{"ip": relatedIP}
}
return
}
Expand Down

0 comments on commit 8b62c56

Please sign in to comment.