Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify fields generated file across all beats #3677

Merged
merged 1 commit into from
Feb 27, 2017

Conversation

ruflin
Copy link
Member

@ruflin ruflin commented Feb 27, 2017

Each beat has its own way of generating the fields.yml file. Some have _meta/fields.yml, others _meta/fields.generated.yml. All scripts that used the fields.yml file had to do checks for these files and include the libbeat/_meta/fields.generate.yml file to get all data in. Now all beats will create _meta/fields.generated.yml. In case it does not exist, it is just a copy of _meta/fields.yml and will be automatically generated. In addition the file _meta/fields.full.generated.yml was introduced, which also contains the content from the libbeat/_meta/fields.generate.yml. This file can be used in most scripts to get all fields. The scripts were changed / simplified accordingly.

This simplifies the implementation of dynamic template loading as only 1 file has to be taken into account.

Part of #3654

Each beat has its own way of generating the fields.yml file. Some have `_meta/fields.yml`, others `_meta/fields.generated.yml`. All scripts that used the fields.yml file had to do checks for these files and include the `libbeat/_meta/fields.generate.yml` file to get all data in. Now all beats will create `_meta/fields.generated.yml`. In case it does not exist, it is just a copy of `_meta/fields.yml` and will be automatically generated. In addition the file `_meta/fields.full.generated.yml` was introduced, which also contains the content from the `libbeat/_meta/fields.generate.yml`. This file can be used in most scripts to get all fields. The scripts were changed / simplified accordingly.

This simplifies the implementation of dynamic template loading as only 1 file has to be taken into account.

Part of elastic#3654
@monicasarbu monicasarbu merged commit 98dde8b into elastic:master Feb 27, 2017
@monicasarbu monicasarbu deleted the unify-fields-generated branch February 27, 2017 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants