diff --git a/CHANGELOG-developer.asciidoc b/CHANGELOG-developer.asciidoc index 62c233890a5..1a4774a2087 100644 --- a/CHANGELOG-developer.asciidoc +++ b/CHANGELOG-developer.asciidoc @@ -34,6 +34,7 @@ The list below covers the major changes between 6.3.0 and master only. ==== Bugfixes - Fix permissions of generated Filebeat filesets. {pull}7140[7140] +- Collect fields from _meta/fields.yml too. {pull}8397[8397] ==== Added diff --git a/libbeat/generator/fields/fields.go b/libbeat/generator/fields/fields.go index 9449f55de90..87085b5c5d5 100644 --- a/libbeat/generator/fields/fields.go +++ b/libbeat/generator/fields/fields.go @@ -33,6 +33,8 @@ type YmlFile struct { func collectCommonFiles(esBeatsPath, beatPath string, fieldFiles []*YmlFile) ([]*YmlFile, error) { commonFields := []string{ + // Fields for custom beats + filepath.Join(beatPath, "_meta/fields.yml"), filepath.Join(beatPath, "_meta/fields.common.yml"), }