Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

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


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:

I found that solution there:

Additional info:
* package version: 6.6.1-1

Steps to reproduce:

Install and start elasticsearch and kibana.
/usr/bin/metricbeat -c /etc/metricbeat/metricbeat.yml -path.home /usr/share/metricbeat -path.config /etc/metricbeat /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