ELK7.10 license过期处理


ELK7.10 license过期处理

  今天在新服务器做ELK7.10部署的时候,想对照原来的配置,于是开回原服务器ELK7.10,发现es启动报错

 

[2021-12-16T14:09:37,109][ERROR][o.e.x.s.a.f.SecurityActionFilter]  blocking [indices:monitor/stats] operation due to expired license. Cluster health, cluster stats and indices stats
operations are blocked on license expiration. All data operations (read and write) continue to work
  大致意思就是license过期了,所有数据读写都不行了
  于是我查询下过期时间,原来10月23日的时候就过期了
[ljy@ever-141]$ curl -X GET "localhost:9200/_xpack/license?pretty"

 解决方法

  参考文档:
(1) https://www.elastic.co/guide/en/elasticsearch/reference/7.1/update-license.html
 
解决思路:
(1)去网址: https://register.elastic.co/    注册一个账号,然后会给你邮箱发封邮件,包括
(a)license下载地址:下载下来是一个 续期.json 的文件
(b)license安装指引
因为我使用的是7.10的版本,安装指引给我发的是这个链接:
Elasticsearch 7.x -- https://www.elastic.co/guide/en/elastic-stack-overview/7.1/license-management.html

 最终解决命令(这命令我试了好几次才试出来):

curl -XPOST -u elastic:changeme 'http:/elk服务器ip:es监听端口/_license/start_basic?acknowledge=true' -H "Content-Type: application/json" -d @续期.json 

续期成功(返回 acknowledged: true)

  changeme是默认密码,看我上面发的参考地址

  据说是续期一年,到时再看看

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM