mservice@sentinel:~$ sudo metricbeat setup
Exiting: Couldn't connect to any of the configured Elasticsearch hosts. Errors: [Error connection to Elasticsearch http://localhost:5044: Get http://localhost:5044: dial tcp [::1]:5044: getsockopt: connection refused]
I think that is the firewall blocking, I'm using Ubuntu Server 18.04 and install ELK via repositories.if it is the firewall, how can I open the ports?
It looks like you have configured it to connect to Elasticsearch on port 5044, but 5044 is normally the Logstash port. Normally Elasticsearch listens on 9200 (http) or 9243 (https).
Or if you intended to send the data to Logstash then double check your configuration to ensure that you have fully removed output.elasticsearch and any related config that's under it.
@andrewkroh thank you by report I reviewed my metricbeatfile.yml and was set output in both elastic and logstash...
So I try running and:
mservice@sentinel:~$ sudo metricbeat setup
Loaded index template
Loading dashboards (Kibana must be running and reachable)
Exiting: Error importing Kibana dashboards: fail to create the Kibana loader: Error creating Kibana client: Error creating Kibana client: can not convert 'object' into 'string' accessing 'setup.kibana.host' (source:'/etc/metricbeat/metricbeat.yml')
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.