Skip to content

Commit

Permalink
Remove added 'name' field
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Stucki committed May 5, 2020
1 parent edaf05e commit aa99b05
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions x-pack/auditbeat/module/system/host/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,7 @@ func hostEvent(host *Host, eventType string, action eventAction) mb.Event {
}

// Copy select host.* fields in case add_host_metadata is not configured.
hostTopLevel := common.MapStr{
"name": host.Hostname,
}
hostTopLevel := common.MapStr{}
hostFields.CopyFieldsTo(hostTopLevel, "architecture")
hostFields.CopyFieldsTo(hostTopLevel, "containerized")
hostFields.CopyFieldsTo(hostTopLevel, "hostname")
Expand Down

0 comments on commit aa99b05

Please sign in to comment.