Changes between Version 8 and Version 9 of ELK


Ignore:
Timestamp:
05/13/21 08:57:53 (4 years ago)
Author:
krit
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ELK

    v8 v9  
    9191
    9292
    93 Directly manage to ES
     93Directly manage to ES with Alias index
    9494{{{
    9595
     
    140140#In your case, you can directly delete test1 and test2.
    141141}}}
     142
     143Snapshot
     144{{{
     145curl -X PUT "localhost:9200/_snapshot/backup-repo?pretty" -H 'Content-Type: application/json' -d'
     146{
     147  "type": "fs",
     148  "settings": {
     149    "location": "/usr/share/elasticsearch/data/repo",
     150    "compress": true
     151  }
     152}'
     153
     154
     155# config snapshot
     156curl -X PUT "localhost:9200/_snapshot/backup-repo/snapshot-1?pretty"
     157
     158# cmd to take snapshot
     159curl -X GET "localhost:9200/_snapshot/backup-repo/snapshot-1?pretty"
     160
     161# check snapshot status
     162curl -X GET "localhost:9200/_snapshot/backup-repo/snapshot-1/_status?pretty"
     163
     164# stop all indices
     165curl -X POST "localhost:9200/_all/_close?pretty"
     166
     167# restore snapshot make sure to CLOSE all indices BEFORE restore
     168curl -X POST "localhost:9200/_snapshot/backup-repo/snapshot-1/_restore?pretty"
     169
     170# start open indices NO NEED
     171curl -X POST "localhost:9200/_all/_open?pretty"
     172
     173
     174}}}