Beat-xpack module doesn't work on localhost 5066 port

[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

Hi @xpacker, welcome to the Elastic community forums!

It sounds like the Beat you are trying to monitor with the beat module is not serving it's API at localhost:5066. Try adding http.enabled: true to that Beat's configuration file.

Shaunak

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.