Создать snapshot elasticsearch
Создать snapshot в зарегистрированном репозитории
curl -X PUT http://localhost:9200/_snapshot/<repo>/<snapshot>
more elasticsearch
all 19 commands →
ILM состояние индекса
curl -s 'http://localhost:9200/<index>/_ilm/explain' | jq '.indices | to_entries[] | {index:.key, phase:.value.phase, action:.value.action}'
Здоровье кластера
curl -s http://es:9200/_cluster/health?pretty
Список индексов с размером
curl -s 'http://es:9200/_cat/indices?v&s=store.size:desc'
Удалить старый индекс
curl -X DELETE http://es:9200/logs-2024.01.01
Поиск с Query DSL
curl -X GET 'http://es:9200/logs-*/_search?pretty' -H 'Content-Type: application/json' -d '{"query":{"match":{"level":"error"}},"size":5}'