Установить значение реплики 0, если всего 1 нода
curl -XPUT 'http://localhost:9200/_settings' -d ' { "index" : { "number_of_replicas" : 0 } }'
curl -XPUT 'http://localhost:9200/_all/_settings?preserve_existing=true' -d '{ "index.number_of_replicas" : "0" }' curl -XPUT 'localhost:9200/_all/_settings?pretty' -H 'Content-Type: application/json' -d' { "index" : { "number_of_replicas" : 0 } } '
Удалить все индексы
curl -XDELETE http://localhost:9200/*
Удалить только индексы ossec
curl -XDELETE http://localhost:9200/ossec-*
Удалить template
curl -XDELETE http://localhost:9200/_template/ossec
Просмотреть template
curl -XGET http://192.168.1.10:9200/_template
Просмотреть mapping
curl -XGET http://192.168.1.10:9200/_mappings/
Просмотреть статус
curl 'http://localhost:9200/_cluster/health?pretty'
Просмотреть все индексы
curl 'http://localhost:9200/_cluster/health?pretty&level=indices'
0 Comment