I just installed elasticsearch and kibana, as described on this page https://www.elastic.co/guide/en/elastic-stack/current/installing-elastic-stack.html and it seems works fine. Now i installed packetbeat and tried to import the dashboards as described here.
I changed to directory
/usr/share/packetbeat/scripts and tried
./import_dashboards but I receive this error
fail to create the Elasticsearch loader: Error creating Elasticsearch client: Couldn't connect to any of the configured Elasticsearch hosts
but elasticsearch and kibana are running.
I use v5.6. So what am I doing wrong?