Skip to content

Commit

Permalink
[Libbeat] Log debug message if the Kibana dashboard can not be import…
Browse files Browse the repository at this point in the history
…ed 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]>
  • Loading branch information
kvch and dplavcic authored Jul 29, 2020
1 parent 953d067 commit c2bb3f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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*

Expand Down
2 changes: 2 additions & 0 deletions libbeat/dashboards/importer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c2bb3f0

Please sign in to comment.