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 (#12211)

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.
  • Loading branch information
dplavcic authored and kvch committed Jul 22, 2020
1 parent b9a00da commit 841dced
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 @@ -150,6 +150,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Server-side TLS config now validates certificate and key are both specified {pull}19584[19584]
- Fix seccomp policy for calls to `chmod` and `chown`. {pull}20054[20054]
- 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 841dced

Please sign in to comment.