Can we use wildcards when we want a specific template to be applied in several indices?
e.g. is the following applicable?
this is from a template file, say my_template_file.json
{
"order": 1,
"index_patterns": "*mapping_channels*",
"settings": {
"index": {
"number_of_shards": "3",
"number_of_replicas": "1"
}
},
"mappings": {
"_doc": {
"properties": {
"username" : { "type" : "keyword" },
"someip": {"type": "ip"},
}
}
}
}
Will then the above template be applied to BOTH the following elasticsearch
outputs?
elasticsearch {
hosts => ["elasticsearch:9200"]
index => "bar_mapping_channels_foo"
document_id => "%{[@metadata][custom_id]}"
template => "/path/to/my_template_file.json"
template_name => "mapping_channels_template"
manage_template => true
template_overwrite => true
document_type => _doc
}
elasticsearch {
hosts => ["elasticsearch:9200"]
index => "foo_mapping_channels_bar"
document_id => "%{[@metadata][custom_id]}"
template => "/path/to/my_template_file.json"
template_name => "mapping_channels_template"
manage_template => true
template_overwrite => true
document_type => _doc
}