Beats: Metricbeat dashboards do not import correctly

Created on 9 Aug 2016  路  11Comments  路  Source: elastic/beats

On alpha5, when loading the dashboards from the import_dashboards.sh script, they do not show up in Kibana.

For confirmed bugs, please report:

  • Version:
    Alpha5
  • Operating System:
    OSX
  • Steps to Reproduce:
  • cd metricbeat-5.0.0-alpha5-darwin-x86_64/kibana && ./import_dashboards.sh
  • go to Kibana, try to Open a dashboard. There are none.
:Dashboards bug

Most helpful comment

A simple workaround is to replace one line in the import_dashboards.sh script, like this:

diff --git a/dev-tools/import_dashboards.sh b/dev-tools/import_dashboards.sh
index 231c97e..f5c5466 100755
--- a/dev-tools/import_dashboards.sh
+++ b/dev-tools/import_dashboards.sh
@@ -8,7 +8,7 @@

 # The default value of the variable. Initialize your own variables here
 ELASTICSEARCH=http://localhost:9200
-CURL=curl
+CURL="curl -H Expect:"
 KIBANA_INDEX=".kibana"
 DIR=.
 BEAT_CONFIG=".beatconfig"

All 11 comments

Removing Metricbeat label, as the same error appears when loading any dashboard/index pattern.

A simple workaround is to replace one line in the import_dashboards.sh script, like this:

diff --git a/dev-tools/import_dashboards.sh b/dev-tools/import_dashboards.sh
index 231c97e..f5c5466 100755
--- a/dev-tools/import_dashboards.sh
+++ b/dev-tools/import_dashboards.sh
@@ -8,7 +8,7 @@

 # The default value of the variable. Initialize your own variables here
 ELASTICSEARCH=http://localhost:9200
-CURL=curl
+CURL="curl -H Expect:"
 KIBANA_INDEX=".kibana"
 DIR=.
 BEAT_CONFIG=".beatconfig"

@dedemorton Do you think we could document this workaround in the getting started for the alpha5, similar to how we had a workaround for alpha4? I can then also add a notice to the blog post.

I made a proposal for the docs in #2218.

Closing this one as the workaround is in place in master and it's documented in the alpha5 docs. The Elasticsearch fix https://github.com/elastic/elasticsearch/pull/19904 is also merged.

Hm, the workaround doesn't work for me if I run the script with -u username:password.

@cwurm We missed that in case of -u CURL variable is overwritten locally: https://github.com/tsg/beats/blob/179e8770c6e0843e84a092a12706fdc70a002f19/dev-tools/import_dashboards.sh#L75 I'm going to reopen this issue.

@cwurm can you please try to change this line:

 CURL="curl --user ${USER}"

with:

CURL="${CURL} --user ${USER}"

@monicasarbu That did it, works now.

This should be solved in 5.0.0-beta1, as we re-wrote the import script in Golang. https://github.com/elastic/beats/pull/2155

Was this page helpful?
0 / 5 - 0 ratings