I am following the setup guide from elastic for metric beat, and get the following when I run " metricbeat setup -e"
019-08-23T20:48:31.017Z INFO kibana/client.go:117 Kibana url: http://localhost:5601
2019-08-23T20:48:31.018Z ERROR instance/beat.go:877 Exiting: error connecting to
Kibana: fail to get the Kibana version: HTTP GET request to http://localhost:5601/api/status fails:
fail to execute the HTTP GET request: Get http://localhost:5601/api/status: dial tcp
127.0.0.1:5601: connect: connection refused. Response: .
They are all running on the same host. And yes, I had to edit the files to get it running, Elastic and Kibana bith crash if I don't specifically set the IP. Also, kibana is not reachable from other hosts if I leave network.host: set to localhost.
2019-08-24T23:36:38.186Z ERROR instance/beat.go:877 Exiting: error connecting to Kibana: fail to get the Kibana version: HTTP GET request to http://192.168.2.39:5601/api/status fails: fail to execute the HTTP GET request: Get http://192.168.2.39:5601/api/status: dial tcp 192.168.2.39:5601: connect: connection refused. Response: .
Exiting: error connecting to Kibana: fail to get the Kibana version: HTTP GET request to http://192.168.2.39:5601/api/status fails: fail to execute the HTTP GET request: Get http://192.168.2.39:5601/api/status: dial tcp 192.168.2.39:5601: connect: connection refused. Response: .
#============================== Kibana =====================================
# Starting with Beats version 6.0.0, the dashboards are loaded via the Kibana API.
# This requires a Kibana endpoint configuration.
setup.kibana:
# Kibana Host
# Scheme and port can be left out and will be set to the default (http and 5601)
# In case you specify and additional path, the scheme is required: http://localhost:5601/path
# IPv6 addresses should always be defined as: https://[2001:db8::1]:5601
host: "192.168.2.39:5601"
.......
#================================ Outputs =====================================
# Configure what output to use when sending the data collected by the beat.
#-------------------------- Elasticsearch output ------------------------------
output.elasticsearch:
# Array of hosts to connect to.
hosts: ["192.168.2.39:9200"]
# Optional protocol and basic auth credentials.
#protocol: "https"
#username: "elastic"
#password: "changeme"
If it does not look like that ... may I ask what version of metricbeat are you using?
You should see something like this. I suspect your localhost line is commented out or does not exist, if you uncomment it then the localhost settings would probably work.
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.