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