Skip to content

Add option to support moved filebeat modules#9432

Merged
jsoriano merged 7 commits intoelastic:masterfrom
jsoriano:filebeat-move-modules
Dec 21, 2018
Merged

Add option to support moved filebeat modules#9432
jsoriano merged 7 commits intoelastic:masterfrom
jsoriano:filebeat-move-modules

Conversation

@jsoriano
Copy link
Copy Markdown
Member

@jsoriano jsoriano commented Dec 7, 2018

If a module needs to be moved, existing configuration will stop working,
this change adds an option to mark an old module as moved to other name.

This is being considered for the movement of apache2 module to apache to
be coherent with metricbeat module (#9402).

So if the module.yml file of the apache2 module contains:

movedTo: apache

Every time the apache2 module is used a warning is printed about the
change and apache module is used instead.

@jsoriano jsoriano added enhancement module discuss Issue needs further discussion. review Filebeat Filebeat needs tests Team:Integrations Label for the Integrations team labels Dec 7, 2018
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/infrastructure

If a module needs to be moved, existing configuration will stop working,
this change adds an option to mark an old module as moved to other name.

This is being considered for the movement of apache2 module to apache to
be coherent with metricbeat module (elastic#9402).
@jsoriano jsoriano force-pushed the filebeat-move-modules branch from be2f921 to 30bc249 Compare December 7, 2018 11:12
Copy link
Copy Markdown
Contributor

@ruflin ruflin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add some tests to this PR? Not sure yet what the best way would be here.

@jsoriano
Copy link
Copy Markdown
Member Author

Test added with a dummy modules directory for this case.

@ruflin
Copy link
Copy Markdown
Contributor

ruflin commented Dec 12, 2018

jenkins, test this

@jsoriano jsoriano requested a review from a team as a code owner December 20, 2018 17:48
@jsoriano jsoriano merged commit 1b83f5e into elastic:master Dec 21, 2018
@jsoriano jsoriano deleted the filebeat-move-modules branch December 21, 2018 15:23
jsoriano added a commit that referenced this pull request Jan 12, 2019
Rename filebeat `apache2` module to `apache`. `apache2` module
is kept as a "moved" module (#9432) so existing configurations continue
working.

Aliases for renamed fields are added and they will be handled as fields
renamed for ECS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

discuss Issue needs further discussion. enhancement Filebeat Filebeat module review Team:Integrations Label for the Integrations team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants