HAProxy dashboard, error loading

(Philip Nunn) #1

Using Filebeat 6.5.1:
After moving the HAProxy dashboard object to "..\kibana\6\dashboard\Filebeat-haproxy-overview.json" and attempting to run filebeat setup --dashboards, the following error occurs >

2018-12-04T08:25:35.822-0800 ERROR instance/beat.go:800 Exiting: Error importing Kibana dashboards: fail to import the dashboards in Kibana: Error importing directory C:\ELASTIC\filebeat-6.5.1-windows-x86_64\kibana: Failed to import dashboard: Failed to load directory C:\ELASTIC\filebeat-6.5.1-windows-x86_64\kibana/6/dashboard:
error loading C:\ELASTIC\filebeat-6.5.1-windows-x86_64\kibana\6\dashboard\Filebeat-haproxy-overview.json: failed to parse field [visualization.kibanaSavedObjectMeta.searchSourceJSON] of type [text]. Response: {"objects":[{"id":"55251360-aa32-11e8-9c06-877f0445e3e0","type":"visualization","error":{"message":"failed to parse field [visualization.kibanaSavedObjectMeta.searchSourceJSON] of type [text]"}},{"id":"7fb671f0-aa32-11e8-9c06-877f0445e3e0","type":"vi... (truncated)

Any ideas? Has anyone imported the HAProxy dashboard successfully? All other dashboards and objects import successfully.

(Philip Nunn) #2

This seems like a bug to me. I converted all of the searchSourceJSON objects to type text and it then got past that error, but now fails on uiStateJSON object. After looking at all of the other module json files, HAProxy is the only one that uses pure json in the config. The others use text for the following objects: searchSourceJSON, uiStateJSON, viState, optionsJSON, panelsJSON, (seemingly any nested json objects). It seems the filebeat parser is expecting text here instead.

(Philip Nunn) #3

Fixed by converting all nested json objects to text strings. Found a couple other issues and will post a bug report on github.

(Philip Nunn) #4

bug filed here