When in *beat config the option "setup.dashboards.enabled = true" is set and the Kibana server is not reachable/or in startup phase while starting beats the beats startup will fail.
Apr 29 08:15:26 elastic1 auditbeat:
2019-04-29T08:15:26.666Z#011ERROR#011instance/beat.go:802#011Exiting:
error connecting to Kibana: fail to get the Kibana version: HTTP GET
request to https://elastic1.localdomain:5601/api/status fails: parsing
kibana response: invalid character 'K' looking for beginning of value.
Response: Kibana server is not ready yet. Apr 29 08:15:26 elastic1
auditbeat: Exiting: error connecting to Kibana: fail to get the Kibana
version: HTTP GET request to
https://elastic1.localdomain:5601/api/status fails: parsing kibana
response: invalid character 'K' looking for beginning of value.
Response: Kibana server is not ready yet. Apr 29 08:15:26 elastic1
systemd: auditbeat.service: main process exited, code=exited,
status=1/FAILURE Apr 29 08:15:26 elastic1 systemd: Unit
auditbeat.service entered failed state. Apr 29 08:15:26 elastic1
systemd: auditbeat.service failed.
Is this a bug or a feature, I think in Version 6.X there is another behaviour and the beat will start also when the kibana isn't reachable.