Complete the code to create an index template named 'logs_template'.
PUT _index_template/[1] { "index_patterns": ["logs-*"], "template": { "settings": { "number_of_shards": 1 } } }
Complete the code to set the index pattern to match all indices starting with 'app-'.
"index_patterns": ["[1]"]
Fix the error in the code to set the number of replicas to 2 in the template settings.
"settings": { "number_of_replicas": [1] }
Fill both blanks to add a mapping for a 'timestamp' field of type 'date'.
"mappings": { "properties": { "timestamp": { "type": "[1]", "format": "[2]" } } }
Fill all three blanks to create a template with priority 10, matching indices starting with 'metrics-', and setting refresh interval to 30s.
{
"index_patterns": ["[1]"],
"priority": [2],
"template": {
"settings": {
"refresh_interval": "[3]"
}
}
}