Timeout on metricbeat setup

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: Get 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: Get 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: Get 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: Get http://192.168.1.92:9200: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

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?

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

1 Like

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