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

Add option to support moved filebeat modules #9432

Merged
merged 7 commits into from
Dec 21, 2018

Conversation

jsoriano
Copy link
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
Collaborator

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).
Copy link
Member

@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
Member Author

Test added with a dummy modules directory for this case.

@ruflin
Copy link
Member

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