xpack settings were included. After the update, the config did not change, only deleted the Kibana system indexes.
parameter: xpack.security.enabled: true
however, an error pops up in Kibana:
{"type":"log","@timestamp":"2020-11-19T16:20:40Z","tags":["warning","plugins","licensing"],"pid":7,"message":"License information could not be obtained from Elasticsearch due to [security_exception] missing authentication credentials for REST request [/_xpack], with { header={ WWW-Authenticate="Basic realm=\"security\" charset=\"UTF-8\"" } } :: {"path":"/_xpack","statusCode":401,"response":"{\"error\":{\"root_cause\":[{\"type\":\"security_exception\",\"reason\":\"missing authentication credentials for REST request [/_xpack]\",\"header\":{\"WWW-Authenticate\":\"Basic realm=\\\"security\\\" charset=\\\"UTF-8\\\"\"}}],\"type\":\"security_exception\",\"reason\":\"missing authentication credentials for REST request [/_xpack]\",\"header\":{\"WWW-Authenticate\":\"Basic realm=\\\"security\\\" charset=\\\"UTF-8\\\"\"}},\"status\":401}","wwwAuthenticateDirective":"Basic realm=\"security\" charset=\"UTF-8\""} error"}
This tells me that you might not have Kibana's credentials configured properly, so Kibana can't talk to Elasticsearch. Have you set both elasticsearch.username and elasticsearch.password within your kibana.yml?
Yes, these two parameters are written in the config. It is strange that when the kibana restarts, it works for a while without errors and sees ES, but later the connection disappears.
This is pretty strange. Can you try to reduce elasticsearch.hosts to a single entry, and see if the problem still persists? I want to try to eliminate possibilities.
Also, to confirm: are you running a single Kibana instance, or multiple Kibana instances?
Based on the logs, it looks like Kibana ran fine for ~6 minutes before it lost the connection. Does that sound about right to you? Is it consistently lasting about that long, or is the timing sporadic?
Once you lose the connection, does it ever come back on its own, or do you have to restart to reconnect?
If we can't isolate the problem to any one Elasticsearch node, then we'll probably need debug logs to triage this further, so that we can observe what's happening before and after these errors start appearing.
I will attach a complete log from the start of the service with debug enabled with a link to Google Drive.
Presumably the problem started on 2020-11-20T18: 00
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.