Skip to content

Commit

Permalink
Add ECS fields to libbeat/fields.yml (#9459)
Browse files Browse the repository at this point in the history
This adds the fields from ECS also to the libbeat/fields.yml. This is needed to have template tests with ECS fields inside.

This is only relevant for testing and makes no difference to the Beats.
  • Loading branch information
ruflin committed Dec 11, 2018
1 parent 34620ad commit 993be9c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libbeat/generator/fields/fields.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,11 @@ type YmlFile struct {
}

func collectCommonFiles(esBeatsPath, beatPath string, fieldFiles []*YmlFile) ([]*YmlFile, error) {
var commonFields []string
var libbeatFieldFiles []*YmlFile
var err error
commonFields := []string{filepath.Join(esBeatsPath, "libbeat/_meta/fields.ecs.yml")}
if !isLibbeat(beatPath) {
commonFields = append(commonFields,
filepath.Join(esBeatsPath, "libbeat/_meta/fields.ecs.yml"),
filepath.Join(esBeatsPath, "libbeat/_meta/fields.common.yml"),
)

Expand Down

0 comments on commit 993be9c

Please sign in to comment.