Monitoring Logstash with metricbeat: Error connection refused

Hello, I am trying to monitor my Logstash node using metricbeat, but I am getting these errors:

Error fetching data for metricset logstash.node: error making http request: Get "https://X.X.X.X:9600/_node": dial tcp X.X.X.X:9600: connect: connection refused
Error fetching data for metricset logstash.node_stats: error making http request: Get "https://X.X.X.X:9600/_node/stats": dial tcp  X.X.X.X:9600: connect: connection refused

My configuration in the logstash-xpack.yml is:

- module: logstash
  metricsets:
    - node
    - node_stats
  period: 10s
  hosts: ["https://X.X.X.X:9600"]
  username: "remote_monitoring_user"
  password: "password"
  ssl.certificate_authorities: ["/etc/metricbeat/certs/ca.crt"]
  ssl.certificate: "/etc/logstash/certs/LOGSTASH.crt"
  ssl.key: "/etc/logstash/certs/LOGSTASH.key"
  ssl.verification_mode: "full"

Can you tell me please what's wrong with my configuration !

Thanks for your help

1 Like

Can you curl https://X.X.X.X:9600 successfully from the same machine that's running Metricbeat?

Thanks for your reply @shaunak,
I am running Metricbeat in the same machine where Logstash is installed

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