How to import bundled index pattern and Kibana dashboard from beats 6.3.0 using basic auth?

Hi,

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 192.168.0.2:9210

How to fix this?

Thanks.

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