#!/bin/bashfind /data/elasticsearch/data/pro-kz-log/nodes/0/indices/ -type d -mtime +7 | awk -F"/" '{print $9}' | grep -v kibana | uniq > /home ...
刪除單個: DELETE indexcurl XDELETE http: . . . : index 你也可以這樣刪除多個索引: DELETE index one,index two curl XDELETE http: . . . : index one,index two DELETE index curl XDELETE http: . . . : index 刪除 全部 索引 強烈不建議 ...
2021-03-04 16:55 0 351 推薦指數:
#!/bin/bashfind /data/elasticsearch/data/pro-kz-log/nodes/0/indices/ -type d -mtime +7 | awk -F"/" '{print $9}' | grep -v kibana | uniq > /home ...
查詢Index信息 GET /bank HTTP/1.1Host: localhost:9200 { "bank": { "aliases": {}, "mappings": { "_doc": { "properties": { "account_number": { "type ...
1. Java代碼層配置模板,執行成功將打印自定義的放置模板成功幾個字,可前往官網地址:https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-high-put-template.html ...
https://www.jianshu.com/p/1f67e4436c37 https://www.jianshu.com/p/a7e458e1ee47 //IK分詞器的通用模板 ...
1.縮小索引是指將原索引分片數縮小到一定數量。但縮小的數量必須為原數量的因子(即原分片數量是新分片倍數),例如8個分片可以縮小到4、2、1個分片。如果原分片數量為素數則只能縮小到一個分片。在縮小開始時,每個分片的復制都必須在同一節點(node)存在。 2.過程如下: 首先,以相同配置創建 ...
1.將索引的分片數拆分成多個。 _split API要求必須使用特定的number_of_routing_shards創建源索引,以便將來進行分割。在Elasticsearch 7.0中已經刪除了這一要求。 索引可以拆分多次,但拆分的最大分片數是由創建索引 ...
滾動索引一般可以與索引模板結合使用,實現按一定條件自動創建索引。 1.當現有索引被認為太大或太舊時,滾動索引API會將別名滾動到新的索引。 創建索引 logs-0000001 別名為 logs_write.如果 logs_write 指向的索引是在7天以前創建的,或者包含 ...
增加索引 利用postMan工具發送restfulAPI添加索引庫 請求方式為put代表添加 創建索引index時映射mapping 請求URL: 使用put發送http://localhost:9200/blog1 { "mappings ...