FS#61828 - [metricbeat] dashboards cannot be loaded into kibana as is

Attached to Project: Community Packages
Opened by Iwan Briquemont (iwanb) - Thursday, 21 February 2019, 15:10 GMT
Last edited by Massimiliano Torromeo (mtorromeo) - Monday, 04 March 2019, 09:35 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Massimiliano Torromeo (mtorromeo)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Trying to load the dashboards included with metricbeat fails:
Loading dashboards (Kibana must be running and reachable)
Exiting: Failed to import dashboard: Failed to load directory /usr/share/metricbeat/kibana/6/dashboard:
error loading /usr/share/metricbeat/kibana/6/dashboard/Metricbeat-apache-overview.json: failed to parse field [visualization.kibanaSavedObjectMeta.searchSourceJSON] of type [text]. Response: {"objects":[{"id":"Apache-HTTPD-CPU","type":"visualization","error":{"message":"failed to parse field [visualization.kibanaSavedObjectMeta.searchSourceJSON] of type [text]"}},{"id":"Apache-HTTPD-Hostname-list","type":"visualization","error":{"message... (truncated)

For some reason this script needs to be used to "encode" the JSON files:
https://github.com/elastic/beats/blob/master/libbeat/scripts/unpack_dashboards.py

I found that solution there:
https://discuss.elastic.co/t/kibana-dashboard-import-failed-to-parse-field-visualization-kibanasavedobjectmeta-searchsourcejson/162169/7

Additional info:
* package version: 6.6.1-1


Steps to reproduce:

Install and start elasticsearch and kibana.
Run:
/usr/bin/metricbeat -c /etc/metricbeat/metricbeat.yml -path.home /usr/share/metricbeat -path.config /etc/metricbeat -path.data /var/lib/metricbeat -path.logs /var/log/metricbeat setup
This task depends upon

Closed by  Massimiliano Torromeo (mtorromeo)
Monday, 04 March 2019, 09:35 GMT
Reason for closing:  Fixed
Additional comments about closing:  beats-6.6.1

Loading...