原文:解決elasticsearch報錯報錯“java.lang.IllegalArgumentException: Rejecting mapping update to [這里是索引名稱保密] as the final mapping would have more than 1 type: [_doc, log]"”

某日在研究kibana的索引生命周期功能,感覺對於我們現在幾千個索引蠻有用途,之前都是寫個刪除腳本呢,放到定時任務進行刪除。 通過新建一個生命后期策略,設置日期 日,並通過索引模板匹配到測試索引的時候,第二天發現該索引無任何數據,顯示索引大小 B,文檔數 ,似乎是不接受數據了 通過查看elasticsearch的logs server.json日志,發現如下報錯: 通過各種查找資料可知, 從 ES ...

2021-08-16 14:43 0 309 推薦指數:

查看詳情

windows下Logstash6.5.3版本讀取文件輸入不生效、配置elasticsearch模板后數據入es報錯Rejecting mapping update to [hello-world-2020.09.10] as the final mapping would have more

  首先講個題外話。logstash配置文件hello-world.json上篇也提到過,不過那是7.9.0版本的,注意mapping下面是沒有type的,因為默認的type就是_doc:   如果我們拿上面這個模板放到logstash的6.5.3版本去跑,會提示 ...

Fri Sep 11 17:57:00 CST 2020 0 1141
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM