[root@xyz modules.d]# cat beat-xpack.yml
# Module: beat
# Docs: https://www.elastic.co/guide/en/beats/metricbeat/7.6/metricbeat-module-beat.html
- module: beat
metricsets:
- stats
- state
period: 10s
http.enabled: true
hosts: ["http://localhost:5066"]
#username: "user"
#password: "secret"
xpack.enabled: true
There are errors when I test beat module
[root@xyz modules.d]# metricbeat test modules beat
beat...
stats...
error... ERROR error making http request: Get http://localhost:5066/stats: dial tcp [::1]:5066: connect: no route to host
state...
error... ERROR error making http request: Get http://localhost:5066/state: dial tcp [::1]:5066: connect: no route to host
All other modules (elasticsearch, system, kibana) are working nicely
Any heap is much appreciated