Skip to content

Commit

Permalink
Collect custom fields in custom beats (elastic#8397)
Browse files Browse the repository at this point in the history
(cherry picked from commit ac6a9fb)
  • Loading branch information
jsoriano committed Sep 25, 2018
1 parent 357d046 commit ff74f2d
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 @@ -33,6 +33,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 ff74f2d

Please sign in to comment.