Metricbeat can not connect to elastic

Hello
I have install elasticsearch and metricbeat,I have config metricbeat’s output to elastic,but when setup meticbeat,
it’s connect to elasticsearch was refused,the Errors is shown below:

Exiting: Couldn’t connect to any of the configured Elasticsearch hosts. Errors: [Error connection to Elasticsearch https://10.5.107.22:9200: Get https://10.5.107.22:9200: proxyconnect tcp: dial tcp 10.104.1.43:3128: getsockopt: connection refused].
can anyone help me?thank you very much.

Can you try if you can access the above url with curl form the machine you have Metricbeat installed? Do you have a proxy between metricbeat and Elasticsearch?

Dear ruflin
I have resolve the problem,the reason is My proxy network server,it refused the connection.the metricbeat and elastic are in the same server,so when I close the proxy,the problem solved.
Thank you very much.
Best regards

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