Setup for kibana dashboards: fail to get the Kibana version

Hi,

I get this error message when trying to import the dashboard for winlogbeat in to kibana.

(winlogbeat-6.1.1-windows-x86_64)

.\winlogbeat.exe setup --dashboards
Exiting: Error importing Kibana dashboards: fail to create the Kibana loader: Error creating Kibana client: fail to get the Kibana version:fail to unmarshal the response from GET http://MY_KIBANA:5601/api/status: json: cannot unmarshal string into Go struct field kibanaVersionResponse.version of type struct { Number string "json:"number""; Snapshot bool "json:"build_snapshot"" }. Response: {"name":"MY_KIBANA","version":"5.2.2"," (truncated)

Please can anyone point me in the right direction?

Getting the same error with Kibana 5.6.0 and and Heartbeat 6.1.1

Could you please share your config?

I am having the same issue, here is a more detailed log

ansible@atlas01:~$ sudo /usr/share/auditbeat/bin/auditbeat setup -E setup.dashboards.kibana_index=.kibana-5.x -E setup.dashboards.enabled=true -E setup.dashboards.always_kiaba=true --dashboards -path.config /etc/auditbeat -e
2018/01/12 20:29:57.046938 beat.go:436: INFO Home path: [/usr/share/auditbeat/bin] Config path: [/etc/auditbeat] Data path: [/usr/share/auditbeat/bin/data] Logs path: [/usr/share/auditbeat/bin/logs]
2018/01/12 20:29:57.047062 metrics.go:23: INFO Metrics logging every 30s
2018/01/12 20:29:57.047173 beat.go:443: INFO Beat UUID: 357c5057-48e9-4b38-899a-512760f837aa
2018/01/12 20:29:57.047217 beat.go:203: INFO Setup Beat: auditbeat; Version: 6.1.1
2018/01/12 20:29:57.048061 module.go:76: INFO Beat name: atlas01
2018/01/12 20:29:57.048188 cfgwarn.go:11: WARN BETA: The audit.kernel metricset is a beta feature
2018/01/12 20:29:57.049021 cfgwarn.go:23: WARN EXPERIMENTAL: The audit.file metricset is an experimental feature
2018/01/12 20:29:57.049263 client.go:69: INFO Kibana url: http://kibana01.mgt.sv5.nskope.net:5601
2018/01/12 20:29:57.058554 beat.go:635: CRIT Exiting: Error importing Kibana dashboards: fail to create the Kibana loader: Error creating Kibana client: fail to get the Kibana version:fail to unmarshal the response from GET http://kibana01.mgt.sv5.nskope.net:5601/api/status: json: cannot unmarshal string into Go struct field kibanaVersionResponse.version of type struct { Number string "json:"number""; Snapshot bool "json:"build_snapshot"" }. Response: {"name":"kibana01","version":"5.6.5","buildNum":15592,"buildSha":"80f98787eb860a4e7ef9b6500cf84b65e331d1fc","uuid":"dd391d64-8a93-4821-a09a-5ed999f4e38b","status":{"overall":{"state":"green","title":"Green","nickname":"Looking good","icon":"success",... (truncated)
Exiting: Error importing Kibana dashboards: fail to create the Kibana loader: Error creating Kibana client: fail to get the Kibana version:fail to unmarshal the response from GET http://kibana01.mgt.sv5.nskope.net:5601/api/status: json: cannot unmarshal string into Go struct field kibanaVersionResponse.version of type struct { Number string "json:"number""; Snapshot bool "json:"build_snapshot"" }. Response: {"name":"kibana01","version":"5.6.5","buildNum":15592,"buildSha":"80f98787eb860a4e7ef9b6500cf84b65e331d1fc","uuid":"dd391d64-8a93-4821-a09a-5ed999f4e38b","status":{"overall":{"state":"green","title":"Green","nickname":"Looking good","icon":"success",... (truncated)

What is your Kibana version?
It is possible that you are encountering this issue: https://github.com/elastic/beats/issues/6090

I installed winlogbeat 5.2.2 the day after I encountered this problem, and that version works just fine with my setup.
It looks like there is some backward compatibility problems with older versions of kibana regarding the dashboard setup in winlogbeat-6.1.1.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.