Skip to content

Commit

Permalink
Collect custom fields in custom beats (#8397)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoriano committed Sep 25, 2018
1 parent eb6ab40 commit ac6a9fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG-developer.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions libbeat/generator/fields/fields.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
}

Expand Down

0 comments on commit ac6a9fb

Please sign in to comment.