原来安装一套elk日志系统,其中es和kibana用到x-pack插件,安装后可以免费试用一个月。一个月后需要许可证,一旦许可证过期将无法使用其中一些功能
这一点官网有介绍:
许可证过期一些错误状态和功能限制官网这里有介绍 https://www.elastic.co/guide/en/x-pack/5.6/license-expiration.html
错误类型状态如下
1 2 3 4 |
[root@xjjh-test1 ~]curl -u elastic:changeme '192.168.6.121:9200/_cat/indices?v' {"error":{"root_cause":[{"type":"security_exception","reason":"current license is non-compliant for [security]","license.expired.feature":"security"}],"type":"security_exception","reason":"current license is non-compliant for [security]","license.expired.feature":"security"},"status":403} 翻译: { “错误” :{ “ root_cause” :[ { “ type” :“ security_exception” ,“ reason” :“当前许可证不符合[security]” ,“ license.expired.feature” :“ security” } ] ,“类型” :“ security_exception” ,“原因” :“当前许可证不符合[安全性]” ,“ license.expired.feature” :“安全性” },“状态” :403 } |
解决办法
1.申请一个免费trial license(https://license.elastic.co/registration) ,下载license,保存为license.json
申请之后相关内容会会发送到你的邮箱

2.下载好开始执行更新
先查看下你当前的证书
1 |
curl -XGET -u elastic:changeme 'http://192.168.6.121:9200/_xpack/license' |

将下载好的license.json文件上传到你的服务器目录(放哪都可以),然后执行如下
1 |
curl -XPUT -u elastic:changeme 'http://192.168.6.121:9200/_xpack/license?acknowledge=true' -d @license.json |

3.再次查看许可证
curl -XGET -u elastic:changeme ‘http://192.168.6.121:9200/_xpack/license’

可以看到许可证有效期增加了一年
顺便说一下,X-PACK免费证书无安全验证功能。所以不要纠结安装后怎么无需登录就访问kibana了。因为你的免费证书没辙功能,这块蛋疼了几个小时
- 本文固定链接: https://www.yoyoask.com/?p=2021
- 转载请注明: shooter 于 SHOOTER 发表