User Tools

Site Tools


elasticsearch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
elasticsearch [2019/06/17 15:11] baumielasticsearch [2021/08/29 11:33] (current) – [Merge smaller indexes to one large index] baumi
Line 85: Line 85:
 $ curator --config ./config.yml action.yml $ curator --config ./config.yml action.yml
 </code> </code>
-{{tag>kb}}+===== Merge smaller indexes to one large index ===== 
 +<code> 
 +$ curl --netrc --insecure --request POST --header "Content-Type: application/json" https://elk-elasticsearch:9200/_reindex -d' 
 +
 +  "source":
 +    "index": "filebeat-7.13.2-2021.07.*" 
 +  }, 
 +  "dest":
 +    "index": "filebeat-7.13.2-2021.07-000001" 
 +  } 
 +}' 
 + 
 +$ curl --netrc --insecure --request PUT --header "Content-Type: application/json" https://elk-elasticsearch:9200/filebeat-7.13.2-2021.07-000001/_alias/filebeat-7.13.2 
 +</code> 
 + 
 +{{tag>kb elasticsearch}}
elasticsearch.1560777107.txt.gz · Last modified: 2019/06/17 15:11 by baumi

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki