Создать шаблон индекса elasticsearch

Авто-конфигурация новых индексов по маске logs-*

curl -X PUT 'http://es:9200/_index_template/logs-tpl' -H 'Content-Type: application/json' -d '{"index_patterns":["logs-*"],"template":{"settings":{"number_of_shards":2}}}'
more elasticsearch all 19 commands →