Beats to Logstash pipeline - Self signed cert implementation

Hi There ,

I am using filebeat, metricbeat and passing output to my logstash pipeline (version 8.1). I have a requirement that need to implement self signed cert to secure communication between beats to our logstash.

But getting error like follows
ERROR [publisher_pipeline_output] pipeline/output.go:154 Failed to connect to backoff(async(tcp://XX.XXX.XX.XX:5064)): x509: certificate signed by unknown authority

Please help me on bypass this error

You need to set the SSL options on Beats so they trust the self-signed certificate, you can find the details on our documentation: Configure the Logstash output | Filebeat Reference [8.3] | Elastic