ELK下载安装后有一个月试用期,到期后需要更新License,且每个License有效期为 1 年,License过期前10天里相关log会一直出现,提醒用户更新,支持实时更新无需重启服务

 

步骤:

1、https://register.elastic.co/registration 网址上注册,成功后ELK会向注册邮箱发送邮件,下载你的License,如图:

 

 

 

2、启动elasticsearch,使用curl命令向其发起更新License请求,输入密码。
curl -XPUT -u elastic http://127.0.0.1:9200/_xpack/license -H "Content-Type: application/json" -d @*************-8ce0-46ee-886e-ab2d8d7ffd86-v5.json

 

 

 

若返回上面的信息,则加上 ?acknowledge=true
curl -XPUT -u elastic http://127.0.0.1:9200/_xpack/license?acknowledge=true -H "Content-Type: application/json" -d @*************-8ce0-46ee-886e-ab2d8d7ffd86-v5.json

 

 

 

出现上述字样,则更新成功。

 

3、同时我们可以在elasticsearch服务中看到:

 

 至此,LICENSE更新成功。

 

posted on 2018-01-08 20:06  Boom__Clap  阅读(6330)  评论(0编辑  收藏  举报