kibana更新license
Posted vv智库
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了kibana更新license相关的知识,希望对你有一定的参考价值。
(例行水一篇)
es添加权限认证后,kibana需要同步添加认证。但是,kibana的认证有时间限制,1年后需要更新license。
下面是如果更新license信息:
下载license
首先登陆https://register.elastic.co/,注册个人信息,注册完成后会向邮箱发送license下载链接。
登录邮箱,按照所给链接下载文件(json格式的)
更新license
把license数据文件放到服务器上,然后向es服务发送http请求,需要提供es的用户名和密码。
如下所示,elastic是用户名。
curl -XPOST -u elastic 'http://10.172.56.144:9201/_xpack/license/start_basic?acknowledge=true&pretty' -H "Content-Type: application/json" -d @ampthon-ampthon-0343908d-8df6-4695-8f2c-fac15bf7e3dd-v5.json
Enter host password for user 'elastic':
{
"acknowledged" : true,
"basic_was_started" : true
}
备注:
需要设置acknowledge=true,否则提示如下内容:
{
"acknowledged" : false,
"basic_was_started" : false,
"error_message" : "Operation failed: Needs acknowledgement.",
"acknowledge" : {
"message" : "This license update requires acknowledgement. To acknowledge the license, please read the following messages and call /start_basic again, this time with the \"acknowledge=true\" parameter:",
"watcher" : [
"Watcher will be disabled"
],
"logstash" : [
"Logstash will no longer poll for centrally-managed pipelines"
],
"security" : [
"The following X-Pack security functionality will be disabled: authentication, authorization, ip filtering, and auditing. Please restart your node after applying the license.",
"Field and document level access control will be disabled.",
"Custom realms will be ignored."
],
"beats" : [
"Beats will no longer be able to use centrally-managed configuration"
],
"monitoring" : [
"Multi-cluster support is disabled for clusters with [BASIC] license. If you are\nrunning multiple clusters, users won't be able to access the clusters with\n[BASIC] licenses from within a single X-Pack Kibana instance. You will have to deploy a\nseparate and dedicated X-pack Kibana instance for each [BASIC] cluster you wish to monitor.",
"Automatic index cleanup is locked to 7 days for clusters with [BASIC] license."
],
"graph" : [
"Graph will be disabled"
],
"ml" : [
"Machine learning will be disabled"
],
"sql" : [
"JDBC and ODBC support will be disabled, but you can continue to use SQL CLI and REST endpoint"
]
}
}
以上是关于kibana更新license的主要内容,如果未能解决你的问题,请参考以下文章