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 "https://10.13.81.40:9600/": http: server gave HTTP response to HTTPS client
And in the browser I can access http://10.13.81.40:9600 so the https is not configured and I don't know which lines I shoud add in logstash.yml file config to activate it !
node.name: LOGSTASH path.data: /var/lib/logstash pipeline.ordered: auto config.reload.automatic: true http.enabled: true http.host: 10.13.81.40 http.port: 9600 path.logs: /var/log/logstash monitoring.enabled: false
Logstash-xpack.yml (metricbeat module) :
- module: logstash xpack.enabled: true period: 10s hosts: ["https://10.13.81.40:9600"] 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