# Timeout on metricbeat setup

**URL:** https://discuss.elastic.co/t/timeout-on-metricbeat-setup/174018
**Category:** Beats
**Tags:** metricbeat
**Created:** [March 26, 2019, 10:46pm UTC](https://discuss.elastic.co/t/timeout-on-metricbeat-setup/174018 "2019-03-26T22:46:54Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ricwhitney](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ricwhitney/32/43043_2.png) [@ricwhitney](https://discuss.elastic.co/u/ricwhitney)
#### Post date: [March 26, 2019, 10:46pm UTC](https://discuss.elastic.co/t/timeout-on-metricbeat-setup/174018/1 "2019-03-26T22:46:54Z")

</div>

I know I'm missing some setup of elasticsearch or something like that but can't find it in Kibana pages  
Here is the output of  
:# metricbeat setup

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

Thanks for any insight  
UPDATE:  
found the install of elasticsearch|  
now I need to enable 0.0.0.0 (not localhost) for :9200  
Any guidance?

UPDATE 2:  
I set the host in elasticsearch.yml at 192.168.0.92

output of metricbeat setup -e:

2019-03-26T16:33:17.825-0700 ERROR elasticsearch/elasticsearch.go:218 Error connecting to Elasticsearch at [http://192.168.1.92:9200](http://192.168.1.92:9200): Get [http://192.168.1.92:9200](http://192.168.1.92:9200): net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)  
2019-03-26T16:33:17.825-0700 ERROR instance/beat.go:911 Exiting: Couldn't connect to any of the configured Elasticsearch hosts. Errors: [Error connection to Elasticsearch [http://192.168.1.92:9200](http://192.168.1.92:9200): Get [http://192.168.1.92:9200](http://192.168.1.92:9200): net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)]  
Exiting: Couldn't connect to any of the configured Elasticsearch hosts. Errors: [Error connection to Elasticsearch [http://192.168.1.92:9200](http://192.168.1.92:9200): Get [http://192.168.1.92:9200](http://192.168.1.92:9200): net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

---

<div class="post-metadata">

### Author: ![pup\_seba](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pup_seba/32/42988_2.png) [@pup\_seba](https://discuss.elastic.co/u/pup_seba)
#### Post date: [March 27, 2019, 12:28am UTC](https://discuss.elastic.co/t/timeout-on-metricbeat-setup/174018/2 "2019-03-27T00:28:17Z")

</div>

Hi,

You set the elasticsearch for a different ip than the one you are using in your metricbeat conf (192.168.0 and 192.168.1).

You could use 0.0.0.0 in your es yaml file maybe?

---

<div class="post-metadata">

### Author: ![ricwhitney](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ricwhitney/32/43043_2.png) [@ricwhitney](https://discuss.elastic.co/u/ricwhitney)
#### Post date: [March 27, 2019, 2:58pm UTC](https://discuss.elastic.co/t/timeout-on-metricbeat-setup/174018/3 "2019-03-27T14:58:58Z")

</div>

That got me on the right track. Had to uncomment the port line in es.yml and restart elasticsearch  
Thanks!

---

<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: [April 24, 2019, 2:58pm UTC](https://discuss.elastic.co/t/timeout-on-metricbeat-setup/174018/4 "2019-04-24T14:58:58Z")

</div>

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