Skip to content

Commit c2bb3f0

Browse files
kvchdplavcic
andauthored
[Libbeat] Log debug message if the Kibana dashboard can not be imported from the archive (elastic#12211) (elastic#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 <[email protected]>
1 parent 953d067 commit c2bb3f0

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.next.asciidoc

+1
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
152152
- Fix seccomp policy for calls to `chmod` and `chown`. {pull}20054[20054]
153153
- Remove unnecessary restarts of metricsets while using Node autodiscover {pull}19974[19974]
154154
- Output errors when Kibana index pattern setup fails. {pull}20121[20121]
155+
- 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]
155156

156157
*Auditbeat*
157158

libbeat/dashboards/importer.go

+2
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ func (imp Importer) ImportArchive() error {
246246
if err != nil {
247247
return err
248248
}
249+
} else {
250+
imp.loader.statusMsg("Skipping import of %s directory. Beat name: %s, base dir name: %s.", dir, imp.cfg.Beat, filepath.Base(dir))
249251
}
250252
}
251253
return nil

0 commit comments

Comments
 (0)