forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Field registry: Don't overwrite fields with same name (elastic#13914) (…
…elastic#14037) When fields are registered (fields.go, autogenerated), they are grouped by (Beatname, Name and Priority). Currently, if the same triplet is used more than once, the previous asset is overwritten. This is the case with Filebeat inputs and modules sharing the same name: module/netflow/fields.go: asset.SetFields("filebeat", "netflow", asset.ModuleFieldsPri, AssetNetflow) input/netflow/fields.go: asset.SetFields("filebeat", "netflow", asset.ModuleFieldsPri, AssetNetflow) Also this introduces an inconsistence as the order of registration can vary. Fixes elastic#13768 (cherry picked from commit 5fec6bc)
- Loading branch information
Showing
2 changed files
with
13 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters