elk x-pack报错

es日志报错


image.png

[2018-07-17T15:48:48,525][INFO ][o.e.x.s.a.AuthenticationService] [iLxwotO] Authentication of [elastic] was terminated by realm [reserved] - failed to authenticate user [elastic]

kibana日志报错


image.png

[warning][license][xpack] License information from the X-Pack plugin could not be obtained from Elasticsearch for the [data] cluster. [security_exception] failed to authenticate user [elastic], 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 [elastic]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}}],"type":"security_exception","reason":"failed to authenticate user [elastic]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}},"status":401}","wwwAuthenticateDirective":"Basic realm="security" charset="UTF-8""}
排查是删掉es的data目录导致删除了.security-6索引


image.png

解决:
bin / elasticsearch-setup-passwords auto | interactive

重置密码 auto:随机密码 interactive:手动设置
然后在es,kibana的配置文件重新指定密码 ok

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容