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

[Metricbeat] modules.d installed to wrong location #8104

Closed
andrewkroh opened this issue Aug 27, 2018 · 2 comments · Fixed by #8105
Closed

[Metricbeat] modules.d installed to wrong location #8104

andrewkroh opened this issue Aug 27, 2018 · 2 comments · Fixed by #8105

Comments

@andrewkroh
Copy link
Member

In 6.4.0 the .deb and .rpm packages install the modules.d directory to /usr/share/metricbeat/modules.d but they are expected to be at /etc/metricbeat/modules.d.

As a workaround you can copy or move the files. Or you can tell metricbeat to look in the /usr withmetricbeat.config.modules.path: '${path.home}/modules.d/*.yml'. You can test if that works with metricbeat modules list.

andrewkroh added a commit to andrewkroh/beats that referenced this issue Aug 27, 2018
This fixes the location of the Metricbeat modules.d directory as installed by .deb and .rpm packages.

Fixes elastic#8104
@ccuellar14
Copy link

This nos a solution based on best practices. I've production environment and update to last version 6.4 not running.

@tsg
Copy link
Contributor

tsg commented Aug 28, 2018

The good news is that this doesn't seem to affect upgrades (because the old modules.d folder is still in place), only new installations. I tested the following command and seems to do the trick, as a workaround:

sudo cp -r /usr/share/metricbeat/modules.d /etc/metricbeat/

tsg added a commit to tsg/beats that referenced this issue Aug 28, 2018
Documents the known issue and the workaround for elastic#8104.
tsg added a commit that referenced this issue Aug 29, 2018
* Document known issue in 6.4.0

Documents the known issue and the workaround for #8104.

* Addressed comments
tsg added a commit to tsg/beats that referenced this issue Aug 29, 2018
* Document known issue in 6.4.0

Documents the known issue and the workaround for elastic#8104.

* Addressed comments

(cherry picked from commit 3555b29)
tsg added a commit to tsg/beats that referenced this issue Aug 29, 2018
* Document known issue in 6.4.0

Documents the known issue and the workaround for elastic#8104.

* Addressed comments

(cherry picked from commit 3555b29)
andrewkroh added a commit that referenced this issue Aug 29, 2018
This fixes the location of the Metricbeat modules.d directory as installed by .deb and .rpm packages.

Fixes #8104
andrewkroh added a commit to andrewkroh/beats that referenced this issue Aug 29, 2018
This fixes the location of the Metricbeat modules.d directory as installed by .deb and .rpm packages.

Fixes elastic#8104

(cherry picked from commit ac96597)
andrewkroh added a commit to andrewkroh/beats that referenced this issue Aug 29, 2018
This fixes the location of the Metricbeat modules.d directory as installed by .deb and .rpm packages.

Fixes elastic#8104

(cherry picked from commit ac96597)
andrewkroh added a commit that referenced this issue Aug 30, 2018
This fixes the location of the Metricbeat modules.d directory as installed by .deb and .rpm packages.

Fixes #8104

(cherry picked from commit ac96597)
exekias pushed a commit that referenced this issue Sep 3, 2018
This fixes the location of the Metricbeat modules.d directory as installed by .deb and .rpm packages.

Fixes #8104

(cherry picked from commit ac96597)
tsg added a commit that referenced this issue Sep 17, 2018
* Document known issue in 6.4.0

Documents the known issue and the workaround for #8104.

* Addressed comments

(cherry picked from commit 3555b29)
tsg added a commit that referenced this issue Sep 17, 2018
* Document known issue in 6.4.0

Documents the known issue and the workaround for #8104.

* Addressed comments

(cherry picked from commit 3555b29)
leweafan pushed a commit to leweafan/beats that referenced this issue Apr 28, 2023
* Document known issue in 6.4.0

Documents the known issue and the workaround for elastic#8104.

* Addressed comments
leweafan pushed a commit to leweafan/beats that referenced this issue Apr 28, 2023
…tic#8152)

This fixes the location of the Metricbeat modules.d directory as installed by .deb and .rpm packages.

Fixes elastic#8104

(cherry picked from commit b62f374)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants