elasticsearch xpack license过期

在启动elasticsearch是提示:

blocking [cluster: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. 
If you have a new license, please update it. Otherwise, please reach out to your support contact.

证书过期这个问题使kibana web端无法访问
需要重新申请一个license:
https://register.elastic.co/marvel_register
申请后会接收一个e-mail,通过里面的链接下载证书json文件
然后通过curl指令更新证书

curl -XPUT -u elastic:changeme 'http://10.12.7.106:9200/_xpack/license?acknowledge=true&pretty' -H "Content-Type: application/json" -d @license.json

elastic:changeme:账户:密码

10.12.7.106:9200:ip:port

license.json:证书json文件名

如果更新成功会返回

{"acknowledged":true,"license_status":"valid"}

你可能感兴趣的:(elasticsearch xpack license过期)