Снимок в репозиторий elasticsearch
Создать снимок кластера синхронно
curl -X PUT 'http://es:9200/_snapshot/my_repo/snap1?wait_for_completion=true'
more elasticsearch
all 19 commands →
Здоровье кластера
curl -s http://localhost:9200/_cluster/health | jq .
Список индексов
curl -s 'http://localhost:9200/_cat/indices?v&h=index,health,pri,rep,docs.count,store.size&s=store.size:desc'
Удалить индекс
curl -X DELETE http://localhost:9200/<index>
Настройки индекса
curl -s http://localhost:9200/<index>/_settings | jq .
Переиндексировать
curl -X POST http://localhost:9200/_reindex -H 'Content-Type: application/json' -d '{"source":{"index":"old"},"dest":{"index":"new"}}'