ELK7.10 license過期處理


ELK7.10 license過期處理

  今天在新服務器做ELK7.10部署的時候,想對照原來的配置,於是開回原服務器ELK7.10,發現es啟動報錯

 

[2021-12-16T14:09:37,109][ERROR][o.e.x.s.a.f.SecurityActionFilter]  blocking [indices:monitor/stats] operation due to expired license. Cluster health, cluster stats and indices stats
operations are blocked on license expiration. All data operations (read and write) continue to work
  大致意思就是license過期了,所有數據讀寫都不行了
  於是我查詢下過期時間,原來10月23日的時候就過期了
[ljy@ever-141]$ curl -X GET "localhost:9200/_xpack/license?pretty"

 解決方法

  參考文檔:
(1) https://www.elastic.co/guide/en/elasticsearch/reference/7.1/update-license.html
 
解決思路:
(1)去網址: https://register.elastic.co/    注冊一個賬號,然后會給你郵箱發封郵件,包括
(a)license下載地址:下載下來是一個 續期.json 的文件
(b)license安裝指引
因為我使用的是7.10的版本,安裝指引給我發的是這個鏈接:
Elasticsearch 7.x -- https://www.elastic.co/guide/en/elastic-stack-overview/7.1/license-management.html

 最終解決命令(這命令我試了好幾次才試出來):

curl -XPOST -u elastic:changeme 'http:/elk服務器ip:es監聽端口/_license/start_basic?acknowledge=true' -H "Content-Type: application/json" -d @續期.json 

續期成功(返回 acknowledged: true)

  changeme是默認密碼,看我上面發的參考地址

  據說是續期一年,到時再看看

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM