Import_dashboards - fail to load Elasticsearch loader

Hi,

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?

Did you enable x-pack in Elasticsearch? If yes, then you need to pass an username and password to the import_dashboards script:

./scripts/import_dashboards  -user user -pass password 

Feeling dumb now. Tried with other options as login but not that simple one :sweat:

This topic was automatically closed after 21 days. New replies are no longer allowed.