Error:
Error while enrolling: fail to execute the HTTP POST request: Post https://kibana:5601/api/beats/agent/c6ffda0c-c395-421b-ac8b-41eb3e97fb81: dial tcp 127.0.0.1:5601: connect: connection refused
When I want to do an Enroll for Metricbeat, I get a connection error. Perhaps Metricbeat is trying to connect to port 5601, although link that Kibana gave does not have a port in address:
sudo metricbeat enroll https://ai.clusterlogics.com ... here comes the hash ...
I use ubuntu 16.04 and elastics 7.1.1