how to assign template to specific elk index
i created the correct index template and migrated the data from the old index but it is not written further in real time
How to make it write? (used by fluentd)
how to assign template to specific elk index
i created the correct index template and migrated the data from the old index but it is not written further in real time
How to make it write? (used by fluentd)
try input this but
PUT /_template/test_template
{
"index_patterns" : [
"test*"
],
"mappings": {
"dynamic_templates": [
{
"strings": {
"match_mapping_type": "string",
"mapping": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 1024
}
}
}
}
}
]
}
}
but have next issue - legacy format not modern
#! legacy template [test_templatee] has index patterns [test*] matching patterns from existing composable templates [default,test.logs,test.sp] with patterns (default => [*],test.logs => [monitor*, fluentd*, sandbox*, test*, staging*],test.sp => [test.sp.services.log*, staging.sp.services.log*]); this template [test_templatee] may be ignored in favor of a composable template at index creation time
#! Legacy index templates are deprecated in favor of composable templates.
{
"acknowledged" : true
}
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.