Hi,
I am trying to import dashboard for metricbeat offline using the command
./scripts/import_dashboards -dir /files/beats-dashboards-5.0.0/metricbeat
and I am getting the error;
-bash-4.1$ ./import_dashboards -dir /files/beats-dashboards-5.0.0/metricbeat
fail to set the mapping. Error: Put http://127.0.0.1:9200/.kibana/_mapping/search: dial tcp 127.0.0.1:9200: getsockopt: connection refused
Import directory /files/beats-dashboards-5.0.0/metricbeat/index-pattern
Import index to /.kibana/index-pattern/metricbeat-* from /files/beats-dashboards-5.0.0/metricbeat/index-pattern/metricbeat.json
ERROR: couldn't load json. Error: Put http://127.0.0.1:9200/.kibana/index-pattern/metricbeat-*: dial tcp 127.0.0.1:9200: getsockopt: connection refused
fail to import index-pattern: fail to load directory /files/beats-dashboards-5.0.0/metricbeat/index-pattern: error loading /files/beats-dashboards-5.0.0/metricbeat/index-pattern/metricbeat.json: couldn't load json. Error: Put http://127.0.0.1:9200/.kibana/index-pattern/metricbeat-*: dial tcp 127.0.0.1:9200: getsockopt: connection refused
What is the problem and how can I fix this? Thanks.