action [cluster:admin/xpack/license/put] is unauthorized for user [kibana]

本文解决了一个关于Kibana导入License时遇到的权限问题,提示action[cluster:admin/xpack/license/put]isunauthorizedforuser[kibana]。原因是kibana用户不是管理员,无法完成操作。解决方案是切换到elastic用户进行操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Kibana安装导入License的时候,提示action [cluster:admin/xpack/license/put] is unauthorized for user [kibana]。

原因在于用kibana不是管理员,查看不了用户,也没法导入授权,重新用elastic用户登录即可。

[es@rocky-linux ~]$ systemctl status kibana.service × kibana.service - Kibana Loaded: loaded (/etc/systemd/system/kibana.service; enabled; preset: disabled) Active: failed (Result: exit-code) since Mon 2025-03-24 20:10:22 CST; 4s ago Duration: 4.290s Process: 2186 ExecStart=/opt/kibana/bin/kibana (code=exited, status=1/FAILURE) Main PID: 2186 (code=exited, status=1/FAILURE) CPU: 5.183s 3月 24 20:10:22 rocky-linux kibana[2186]: at SafeSubscriber.<anonymous> (/opt/kibana/node_modules/rxjs/dist/cjs/internal/util/lift.js:14:28) 3月 24 20:10:22 rocky-linux kibana[2186]: at /opt/kibana/node_modules/rxjs/dist/cjs/internal/Observable.js:30:30 3月 24 20:10:22 rocky-linux kibana[2186]: at Object.errorContext (/opt/kibana/node_modules/rxjs/dist/cjs/internal/util/errorContext.js:22:9) 3月 24 20:10:22 rocky-linux kibana[2186]: at Observable.subscribe (/opt/kibana/node_modules/rxjs/dist/cjs/internal/Observable.js:26:24) 3月 24 20:10:22 rocky-linux kibana[2186]: at /opt/kibana/node_modules/rxjs/dist/cjs/internal/Observable.js:86:19 3月 24 20:10:22 rocky-linux kibana[2186]: at new Promise (<anonymous>) 3月 24 20:10:22 rocky-linux kibana[2186]: FATAL Error: [config validation of [xpack.security].enabled]: definition for this key is missing 3月 24 20:10:22 rocky-linux systemd[1]: kibana.service: Main process exited, code=exited, status=1/FAILURE 3月 24 20:10:22 rocky-linux systemd[1]: kibana.service: Failed with result 'exit-code'. 3月 24 20:10:22 rocky-linux systemd[1]: kibana.service: Consumed 5.183s CPU time.我遇到kibana启动失败的问题了,配置如下:server.host: "0.0.0.0" server.ssl.enabled: true server.ssl.certificate: /opt/kibana/config/certs/kibana.crt server.ssl.key: /opt/kibana/config/certs/kibana.key elasticsearch.hosts: ["https://10.211.55.3:9201", "https://10.211.55.3:9202", "https://10.211.55.3:9203"] elasticsearch.username: "elastic" elasticsearch.password: "123456" elasticsearch.ssl.certificateAuthorities: ["/opt/kibana/config/certs/ca.crt"] elasticsearch.ssl.verificationMode: full xpack.security.enabled: true xpack.security.encryptionKey: "/opt/kibana/config/encryption.key" xpack.encryptedSavedObjects.encryptionKey: "7ac84bcad5624f3a957e1ce95947d5bd26f8c2c144a7a5b781a39fc13e8d9ae5" server.compression.enabled: true问题出在哪里?
03-25
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值