Access Logsatsh via HTTPS


I would like to monitor Logstash with Metricbeat, and TLS is activated in all my cluster (beats, kibana, Elasticsearch) that's why why I run metricbeat, I get an error:

error making http request: Get "": http: server gave HTTP response to HTTPS client

And in the browser I can access so the https is not configured and I don't know which lines I shoud add in logstash.yml file config to activate it !

My Logstash.yml: LOGSTASH /var/lib/logstash
pipeline.ordered: auto
config.reload.automatic: true
http.enabled: true
http.port: 9600
path.logs: /var/log/logstash
monitoring.enabled: false

Logstash-xpack.yml (metricbeat module) :

- module: logstash
  xpack.enabled: true
  period: 10s
  hosts: [""]
  username: "remote_monitoring_user"
  password: "PASSWORD"
  ssl.certificate_authorities: ["/etc/metricbeat/certs/ca.crt"]
  ssl.certificate: "/etc/metricbeat/certs/LOGSTASH.crt"
  ssl.key: "/etc/metricbeat/certs/LOGSTASH.key"
  ssl.verification_mode: "full"

Could you please help me which lines I shoud add in the logstash.yml to activate the TLS ?

Thanks for your help

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