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更新成功。