Kibana-4.6.6 marvel插件license过期重新注册

时间:2024-01-01 19:40:45

1、注册新的license,https://register.elastic.co/marvel_register,注册完毕邮箱收取下载地址,将新的license下载到本地

2、到license所在目录执行curl命令:

curl -XPUT 'http://<host>:<port>/_license' -d @license.json

将host和port替换为Elasticsearch的IP和端口执行curl命令报错如下:

{"acknowledged":false,"license_status":"valid","acknowledge":{"message":"This license update requires acknowledgement. To acknowledge the license, please read the following messages and update the license again, this time with the \"acknowledge=true\" parameter:","marvel":["basic","Automatic index cleanup is locked to 7 days for clusters with [{}] license.basic"]}}

经搜索报错信息后修改命令如下:

curl -XPUT -u elastic:@abc.com 'http://localhost:9200/_license?acknowledge=true' -H "Content-Type: application/json" -d @license.json

其中:

-u elastic:123@abc.com 是运行elasticsearch进程的用户及密码

参考链接:

https://blog.csdn.net/john1337/article/details/78602539