Hi All,
I have a cluster of ES nodes with 3 nodes in total, I would like two replica shards for each primary, I have implemented the below template which does not appear to work, any advice?
{
"graylog-internal" : {
"order" : 0,
"template" : "graylog_*",
"settings" : {
"index" : {
"number_of_shards" : "2",
"number_of_replicas" : "2"
}
},
"mappings" : {
"message" : {
"properties" : {
"message" : {
"type" : "text",
"analyzer" : "standard",
"fielddata" : false
},
"full_message" : {
"type" : "text",
"analyzer" : "standard",
"fielddata" : false
},
"timestamp" : {
"type" : "date",
"format" : "yyyy-MM-dd HH:mm:ss.SSS"
},
"streams" : {
"type" : "keyword"
}
},
"dynamic_templates" : [
{
"internal_fields" : {
"match" : "gl2_*",
"mapping" : {
"type" : "keyword"
}
}
}
]
}
},
"aliases" : { }
}
}
The above is returned from curl -XGET 'localhost:9200/_template?pretty'
Regards,
George