Hi.
We are new to this tool and enable elastic and kibana, however I have not been able to enable security, to make us register with a user in Kibana. I did the following to enable security:
1.- I stopped Kibana and Elastic
2.- Add xpack.security.enabled: true to file elasticsearch.yml
3.- I enable option elasticsearch.username and elasticsearch.password on file kibana.yml
elasticsearch.username: "kibana"
elasticsearch.password: "pass"
4.- I started Elastic and Kibana
In Kibana log (kibana.stdout) I get the following error
"{"type":"log","@timestamp":"2020-06-12T18:02:41Z","tags":["error","savedobjects-service"],"pid":13036,"message":"Unable to retrieve version information from Elasticsearch nodes."}
{"type":"log","@timestamp":"2020-06-12T18:03:11Z","tags":["warning","plugins","licensing"],"pid":13036,"message":"License information could not be obtained from Elasticsearch due to [security_exception] failed to authenticate user [kibana], with { header={ WWW-Authenticate="Basic realm=\"security\" charset=\"UTF-8\"" } } :: {"path":"/_xpack","statusCode":401,"response":"{\"error\":{\"root_cause\":[{\"type\":\"security_exception\",\"reason\":\"failed to authenticate user [kibana]\",\"header\":{\"WWW-Authenticate\":\"Basic realm=\\\"security\\\" charset=\\\"UTF-8\\\"\"}}],\"type\":\"security_exception\",\"reason\":\"failed to authenticate user [kibana]\",\"header\":{\"WWW-Authenticate\":\"Basic realm=\\\"security\\\" charset=\\\"UTF-8\\\"\"}},\"status\":401}","wwwAuthenticateDirective":"Basic realm=\"security\" charset=\"UTF-8\""} error"}
"
In Elastic log (elasticsearch.log):
"[2020-06-12T14:01:59,289][INFO ][o.e.c.r.a.AllocationService] [DataLake.localdomain] Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[.apm-agent-configuration][0]]]).
[2020-06-12T14:02:41,251][INFO ][o.e.x.s.a.AuthenticationService] [DataLake.localdomain] Authentication of [kibana] was terminated by realm [reserved] - failed to authenticate user [kibana]
"
I would appreciate if you can help me
Regards
Rodrigo