Issue to setting up Metricbeat on Linux

Hello guys,

I'm currently trying to use my ELK install on WIN2016 and all access seems to be ok with the good tutorial from : http://robwillis.info/2019/05/installing-elk-7-elasticsearch-logstash-and-kibana-windows-server-2016

Elastic, Kibana is running and logstach too

But my issue is when i want to set up metricbeat installation on a Linux server... (i use the apt-get install metricbeat command)

For my example of POC my windows server has the IP 10.0.4.35
from my server in localhost, http://127.0.0.1:9200 is ok and running with infos of cluster_name etc..

when i'm going to try # ./metricbeat setup on the linux server i receive the error below :

Exiting: Couldn't connect to any of the configured Elasticsearch hosts. Errors: [Error connection to Elasticsearch https://10.0.4.35:9200: Get https://10.0.4.35:9200: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)]

i understand that i have to set some informations in the metricbeat.yml file but all options are set and the error still present...

here is the sample :
#setup.kibana:
hosts: ["10.0.4.35:5601"]

output.elasticsearch:
#Array of hosts to connect to.
hosts: ["http://10.0.4.35:9200"]

#output.logstash:
#The Logstash hosts
#hosts: ["10.0.4.35:5044"]

If someone can help me it will be cool because i don't understand why and i'm blocked on the basic ... :frowning: :frowning:

Resolve :
Modify elastisearch.yml and add the value :
http.host: 0.0.0.0

Thanks for posting the solution :slight_smile:

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