Hello,
I need Filebeat to send the same logs to two different logstash endpoints with differents signing authorities, certificates and keys. I have test them separetly and the connexion with both endpoints works fine. But, once I try them at the same time filebeat only sends the logs to one of the endpoints.
First I tried the load balancing option:
output.logstash:
hosts: ["end_point1:5044", "end_point2:5044"]
loadbalance : true
ssl.certificate_authorities: ["/etc/ssl/certs/end_point1.cer", /etc/ssl/certs/end_point2.cer"]
ssl.certificate: "/etc/ssl/certs/end_point1.cer"
ssl.key: "/etc/ssl/certs/end_point1.key"
ssl.certificate: "/etc/ssl/certs/end_point2.cer"
ssl.key: "/etc/ssl/certs/end_point2.key"
I tried also to put both keys and certificates in a list as for certificate_authorities but I got a invalid type error. And then I tried to define two ouputs:
output.logstash:
hosts: ["end_point1:5044"]
ssl.certificate_authorities: ["/etc/ssl/certs/end_point1.cer"]
ssl.certificate: "/etc/ssl/certs/end_point1.cer"
ssl.key: "/etc/ssl/certs/end_point1.key"
output.logstash:
hosts: ["end_point2:5044"]
ssl.certificate_authorities: ["/etc/ssl/certs/end_point2.cer"]
ssl.certificate: "/etc/ssl/certs/end_point2.cer"
ssl.key: "/etc/ssl/certs/end_point2.key"
But none of this worked...
Any ideas?
note: I have tried loadbalancing without using ssl and it also worked