elasticsearch
This is an old revision of the document!
Table of Contents
Elasticsearch Cheat Sheet
update_by_query
POST /index/_update_by_query { "script": "ctx._source.field = 'correct value'", "query": { "term": { "field": "wrong value" } } }
backup
Add backup directory to repository
$ grep backup /srv/elk/elasticsearch/config/elasticsearch.yml path.repo: [ "/backup" ]
Register snapshot repository
PUT /_snapshot/backup { "type": "fs", "settings": { "location": "/backup", "compress": "true" } }
Create snapshot
PUT /_snapshot/backup/snapshot_$date?wait_for_completion=true
elasticsearch.1550916566.txt.gz · Last modified: 2019/02/23 11:09 by baumi