ElasticSearch7.5.2通过模板管理索引副本数、分片
一、指定多个索引,如下所示当创建名称包含filebeat-、test-、dev-、prod-命名的索引指定索引规则为1个分片,0副本
curl -XPUT 'http://localhost:9200/_template/template_http_request_record' -H 'Content-Type: application/json' -d '{"index_patterns": ["filebeat-*","test-*","dev-*","prod-*"],"settings": {"number_of_shards": 1,"number_of_replicas": 0}}'