Выполнить поиск
Полнотекстовый поиск документов со словом "error" в поле `message`
curl -s -X POST http://localhost:9200/<index>/_search -H 'Content-Type: application/json' -d '{"query":{"match":{"message":"error"}}}'
- инструмент
- elasticsearch19 команд
- теги
- elasticsearch
Другие команды elasticsearch
-
curl -X PUT http://localhost:9200/_snapshot/<repo>/<snapshot>Создаёт snapshot в зарегистрированном репозитории
-
curl -s 'http://localhost:9200/<index>/_ilm/explain' | jq '.indices | to_entries[] | {index:.key, phase:.value.phase, action:.value.action}'Показывает текущую фазу и действие ILM для индекса
-
curl -s http://es:9200/_cluster/health?prettyПоказывает статус кластера (green, yellow или red) и число шардов
-
curl -s 'http://es:9200/_cat/indices?v&s=store.size:desc'Показывает все индексы, самые большие сверху
-
curl -X DELETE http://es:9200/logs-2024.01.01Удаляет один индекс, отменить нельзя