Force merge индекса elasticsearch
Уменьшить количество сегментов; полезно перед переводом в read-only
curl -X POST 'http://localhost:9200/<index>/_forcemerge?max_num_segments=1'
more elasticsearch
all 19 commands →
Статистика нод
curl -s http://localhost:9200/_cat/nodes?v
Поисковый запрос
curl -s -X POST http://localhost:9200/<index>/_search -H 'Content-Type: application/json' -d '{"query":{"match":{"message":"error"}}}'
Создать snapshot
curl -X PUT http://localhost:9200/_snapshot/<repo>/<snapshot>
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