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

Fix filebeat.yml template for version 7.x #84

Merged
merged 2 commits into from
Aug 10, 2022

Conversation

sthempura
Copy link
Contributor

Starting with version 7.0, Filebeat stores the registry in a sub-directory. The directory is configured using the filebeat.registry.path setting.

This commit makes sure correct settings are used when installing filebeat 7.x.

Copy link
Contributor

@kwmonroe kwmonroe left a comment

Choose a reason for hiding this comment

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

LGTM, just made a small tweak. Since the template has a parent filebeat key, we don't want to prefix children with filebeat..

Otherwise, you'll end up with this:

$ sudo filebeat export config -c my.yml
filebeat:
  filebeat:
    registry:
      path: /my/path
  ...

when we really want this:

filebeat:
  ...
  registry:
    path: /my/path

@kwmonroe kwmonroe merged commit 3446581 into canonical:master Aug 10, 2022
kwmonroe added a commit that referenced this pull request Aug 10, 2022
kwmonroe added a commit that referenced this pull request Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants