# Issue to setting up Metricbeat on Linux

**URL:** <https://discuss.elastic.co/t/issue-to-setting-up-metricbeat-on-linux/197692>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [September 2, 2019, 1:12pm UTC](https://discuss.elastic.co/t/issue-to-setting-up-metricbeat-on-linux/197692 "2019-09-02T13:12:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aw4xs](https://avatars.discourse-cdn.com/v4/letter/a/d6d6ee/32.png) [@Aw4xs](https://discuss.elastic.co/u/Aw4xs)\
**Post date:** [September 2, 2019, 1:12pm UTC](https://discuss.elastic.co/t/issue-to-setting-up-metricbeat-on-linux/197692/1 "2019-09-02T13:12:46Z")

</div>

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](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](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](https://10.0.4.35:9200): Get [https://10.0.4.35:9200](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](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 ... ☹ ☹

---

<div class="post-metadata">

**Author:** ![Aw4xs](https://avatars.discourse-cdn.com/v4/letter/a/d6d6ee/32.png) [@Aw4xs](https://discuss.elastic.co/u/Aw4xs)\
**Post date:** [September 2, 2019, 4:47pm UTC](https://discuss.elastic.co/t/issue-to-setting-up-metricbeat-on-linux/197692/2 "2019-09-02T16:47:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Mario\_Castro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario_castro/32/35107_2.png) [@Mario\_Castro](https://discuss.elastic.co/u/Mario_Castro)\
**Post date:** [September 3, 2019, 1:25pm UTC](https://discuss.elastic.co/t/issue-to-setting-up-metricbeat-on-linux/197692/3 "2019-09-03T13:25:05Z")

</div>

Thanks for posting the solution 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 1, 2019, 1:25pm UTC](https://discuss.elastic.co/t/issue-to-setting-up-metricbeat-on-linux/197692/4 "2019-10-01T13:25:11Z")

</div>

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