Packetbeat Failed to connect to backoff(https://.....) EOF

Hi There,
I am new to this!
I have setup an Opendistro Elastic search using docker images and the setup is working as expected. But now I want to get data to show in this new Kibana from a packetbeat installed on and it is giving me below error.

“Failed to connect to backoff(elasticsearch( Get “”: EOF”


Array of hosts to connect to.

#hosts: [“”]
#hosts: [“”,“”]
hosts: [“”]

#Protocol - either http (default) or https.
protocol: “https”

Authentication credentials - either API key or username/password.

#api_key: “id:api_key”
#username: “elastic”
#password: “changeme”
username: “admin”
password: “admin”

------------------------------ Logstash Output -------------------------------


The Logstash hosts

#hosts: [“localhost:5044”]

Optional SSL. By default is off.

List of root certificates for HTTPS server verifications

ssl.certificate_authorities: [“/etc/pki/root/ca.pem”]

Certificate for SSL client authentication

ssl.certificate: “/etc/pki/client/cert.pem”

Client Certificate Key

ssl.key: “/etc/pki/client/cert.key”