Elasticsearch更新license:
初次安裝Marvel,有30天的使用時間,當到期后,只保存7天的數據,所以需要注冊申請一個license:
注冊申請地址:
https://register.elastic.co/marvel_register
注冊后的license會以郵箱的形式進行反饋:

Ps:lincese有效期為一年
查看elasticsearch的版本:

下載相應的lincese版本,上傳至服務器:
1.curl -XPUT ‘http://10.26.44.42:9200/_license’ -d @license.json
返回:
{"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"]}}
2.curl -XPUT ‘http://10.26.44.42:9200/_licenses?acknowledge=true’ -d @license.json
返回:
{"acknowledged":true,"license_status":"valid"}
3.curl -XGET -u user:password ‘http://10.26.44.42:9200/_license’

參考文檔:
Elasticsearch2.x:
https://www.elastic.co/guide/en/marvel/current/license-management.html
Elasticsearch5.x:
https://www.elastic.co/guide/en/x-pack/current/installing-license.html
