-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to load kibana dashboards from zip file #12211
Comments
Zip example used when reproducing this: |
UPDATE 4(previous updates are available in revision history): TLDR (not a bug); Combinations of setup.dashboards.beat and directory structure together with status (Imported to Kibana? YES/NO/ERROR) are show in the table below:
Title: Combination of working directory structure with corresponding setup.dashboards.beat value Legend:
DescriptionLibbeat implementation requires predefined combination of directory structure and setup.dashboards.beat property that has to be defined to successfully import dashboards to the Kibana. From documentation in filebeat.reference.yml:
Part of code relevant to importing dashboard from extracted archive file:
Example file is dashboard.zip and has the following structure (please ignore *.json file names):
On line 220 dashboard.zip is extracted to /tmp/tmp181549145:
On line 224 the dir variable represents firstLevelDir and has a value of:
On line 232 the dir variable represents secondLevelDir and has a value of:
Previous directory structure is hard coded and represents firstLevelDir and secondLevel dir values from the table. On line 239 is a condition that check if either of following is true:
If any of previous condition is true, execution continues with importing dashboards to the Kibana. There is another part of the code that assumes two another levels of directory structure, which are also hard coded and consists of Kibana version, in this case 7 (libbeat/dashboards/importer.go:309) and hardcoded value of 'dashboards' (libbeat/dashboards/importer.go:112). At the same time those value represents thirdLevelDir and fourthLevelDir from the table.
Proposal:
@ycombinator: Could you please try to import Kibana dashboard from the archive once again, this time, using one of the available combinations from the table (directory structure + setup.dashboards.beat)? |
…ed from the archive (elastic#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.
…ed 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 <[email protected]>
…ne-2.0 * upstream/master: (29 commits) Add an explicit system test for processes on unix systems (elastic#20320) [Autodiscovery] Ignore ErrInputNotFinished errors in autodiscover config checks (elastic#20305) [CI] Update README.md with CI references (elastic#20316) Add ECK doc links to Heartbeat docs (elastic#20284) [Filebeat] Add export tests to x-pack/filebeat (elastic#20156) feat(ci): support building docker images for PRs (elastic#20323) Update system tests dependency (elastic#20287) [Libbeat] Log debug message if the Kibana dashboard can not be imported from the archive (elastic#12211) (elastic#20150) [Filebeat][Gsuite] Transform all dates to timestamp with processor (elastic#20308) Infer types in Prometheus remote_write (elastic#19944) Remove unnecessary restarts of metricsets while using Node autodiscover (elastic#19974) docs: update changelog on master branch (elastic#20259) feat(ci): support storing artifacts for PRs in separate dirs (elastic#20282) [CI] Change upstream reference (elastic#20296) [Filebeat] Updates to Suricata module (elastic#20220) [docs] Fix Windows download link for agent (elastic#20258) [docs] Rename release highlights to what's new (elastic#20255) fix: update the display name of the multibranch job (elastic#20265) [Elastic Agent] Add basic protocol to control Elastic Agent. (elastic#20146) Cisco ASA: Fix message 106100 (elastic#20245) ...
…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]>
…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]> (cherry picked from commit c2bb3f0)
…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]> (cherry picked from commit c2bb3f0)
…ed from the archive (#12211) (#20150) (#22760) 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]> (cherry picked from commit c2bb3f0)
Observed on
master
/8.0.0
.When using the
setup.dashboards.file
option, setting it to a zip file containing Kibana dashboard files, Packetbeat does not actually load the dashboards in the zip file into Kibana.Relevant settings in
packetbeat.yml
:Note that if the zip file is extracted and the
setup.dashboards.directory
option, pointed to that folder, is used instead of thesetup.dashboards.file
option, the dashboards do get loaded into Kibana as expected.The text was updated successfully, but these errors were encountered: