, Kopf pluin, : https://github.com/lmenezes/elasticsearch-kopf
API:
curl -XPUT $ELASTICSEARCH-MASTER$:9200/_template/$TEMPLATE-NAME$ -d '$TEMPLATE-CONTENT$'
In the plugin: in the upper left corner, click more → Index Templates, and then create a new template and make sure that you have the following options as part of your template:
{
"order": 0,
"template": "logstash*",
"settings": {
"index": {
"number_of_shards": "5",
"number_of_replicas": "1"
}
},
"mappings": {
"aliases": {}
}
The above setting will ensure that if a new new index is created with a name logstash*, it will have 5 number of fragments and 1 replica.
source
share