0

我在 Ubuntu 服务器上运行 7.6.1 ES 和 kibana。

一旦我启用了 xpack 安全性,我就无法登录到 kibana

在 ES 配置中

xpack.security.enabled: true
discovery.type: single-node

我使用以下命令生成密码

bin/elasticsearch-setup-passwords auto

和 kibana 配置添加了以下文件

elasticsearch.username: "kibana" elasticsearch.password: "***"

我能够获得登录屏幕但无法登录请查找屏幕 - 在此处输入图像描述

我可以在系统日志中看到以下错误

> Mar  9 11:43:14 vv-es kibana[10782]:
> {"type":"response","@timestamp":"2020-03-09T11:43:14Z","tags":[],"pid":10782,
> "method":"post","statusCode":404,"req":{"url":"/internal/security/login","method":"post",
> "headers":{"x-forwarded-for":"49.206.240.190","x-forwarded-proto":"https","x-forwarded-port":"443","host":"dnshost.net",
> "x-amzn-trace-id":"Root=1-5e662bd2-a051372e02673d70baaadc8a","content-length":"56","pragma":"no-cache","cache-control":"no-cache","accept":"application/json,
> text/plain,
> */*","sec-fetch-dest":"empty","kbn-version":"7.6.1","user-agent":"Mozilla/5.0
> (Windows NT 10.0; Win64; x64)  AppleWebKit/537.36 (KHTML, like Gecko)
> Chrome/80.0.3987.132
> Safari/537.36","content-type":"application/json;charset=UTF-8", 
> "origin":"https://dnshost.net","sec-fetch-site":"same-origin","sec-fetch-mode":"cors",
> "referer":"https://dnshost.net/login?next=%2Fapp%2Fkibana","accept-encoding":"gzip,
> deflate, br","accept-language":"en-US,en;q=0.9,hi;q=0.8"}, 
> "remoteAddress":"127.0.0.1","userAgent":"127.0.0.1","referer":"https://dnshost.net/login?next=%2Fapp%2Fkibana"}  ,"res":{"statusCode":404,"responseTime":63,"contentLength":9},"message":"POST
> /internal/security/login 404 63ms - 9.0B"}

对此有任何建议。谢谢

4

0 回答 0