I installed metricbeat yesterday from the rpm.
I'm trying to use the http module but it says it doesn't exist. What went wrong with my install?
I installed with: sudo rpm -vi metricbeat-6.4.0-x86_64.rpm
I made a small edit to /usr/share/metricbeat/modules.d/http.yml.disabled and renamed it http.yml
I added /user/share/metricbeat/bin to the beginning of $PATH.
I tried the following (as root):
cd /etc/metricbeat
metricbeat modules enable http
It responded:
Module http doesn't exist!
I get a similar response trying to enable apache (I have not touched its apache.yml.disabled file).
It sounds like I need to "sync" /etc/metricbeat/metricbeat.yml to a newly repositioned directory /usr/share/metricbeat/modules.d. So maybe I just need to figure out how to do that. (or wait for release 6.4.1)
Yes, syncing /etc/metricbeat to the new location of modules.d works. Change the line
path: ${path.config}/modules.d/.yml
to
path: /usr/share/metricbeat/modules.d/.yml
in the metricbeat.config.modules section of the file.
Note that ${path.home} does not work as a substitute for ${path.config}, so I spelled out /usr/share/metricbeat.
I'm afraid you are running into this bug: https://github.com/elastic/beats/issues/8104. We're working on fixing it and getting a release out soon. For now, you might want to try the workaround mentioned in the linked issue.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.