From c2bb3f0d152b250763a1c75e24fe5cd3c51b11dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Wed, 29 Jul 2020 16:55:42 +0200 Subject: [PATCH] [Libbeat] Log debug message if the Kibana dashboard can not be imported from the archive (#12211) (#20150) There is a predefined combination of directory structure and setup.dashboards.beat property that has to be defined to successfully import dashboards to the Kibana. Co-authored-by: dplavcic --- CHANGELOG.next.asciidoc | 1 + libbeat/dashboards/importer.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index 327e6aaa8ce..dde1e42142e 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -152,6 +152,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d - Fix seccomp policy for calls to `chmod` and `chown`. {pull}20054[20054] - Remove unnecessary restarts of metricsets while using Node autodiscover {pull}19974[19974] - Output errors when Kibana index pattern setup fails. {pull}20121[20121] +- Log debug message if the Kibana dashboard can not be imported from the archive because of the invalid archive directory structure {issue}12211[12211], {pull}13387[13387] *Auditbeat* diff --git a/libbeat/dashboards/importer.go b/libbeat/dashboards/importer.go index 0c56d073d91..f467f21c67c 100644 --- a/libbeat/dashboards/importer.go +++ b/libbeat/dashboards/importer.go @@ -246,6 +246,8 @@ func (imp Importer) ImportArchive() error { if err != nil { return err } + } else { + imp.loader.statusMsg("Skipping import of %s directory. Beat name: %s, base dir name: %s.", dir, imp.cfg.Beat, filepath.Base(dir)) } } return nil