I am using ELK GA 6.3.0. I am trying to import bundled dashboard and index pattern from Heartbeat. I have set basic auth in my elasticsearch, and I am trying out the below command;
./heartbeat setup --dashboards --template -E setup.kibana.host=192.168.0.1:5601 -E setup.kibana.username=admin -E setup.kibana.password=admin2
But I am getting the below error;
Exiting: Couldn't connect to any of the configured Elasticsearch hosts. Errors: [Error connection to Elasticsearch http://localhost:9200: Get http://localhost:9200: dial tcp [::1]:9200: getsockopt: connection refused]
My elasticsearch endpoint is
How to fix this?