diff --git a/ansible/roles/monasca/templates/monasca-log-persister/elasticsearch-template.json b/ansible/roles/monasca/templates/monasca-log-persister/elasticsearch-template.json index c882454cb7..15ea285d30 100644 --- a/ansible/roles/monasca/templates/monasca-log-persister/elasticsearch-template.json +++ b/ansible/roles/monasca/templates/monasca-log-persister/elasticsearch-template.json @@ -13,9 +13,9 @@ "fielddata": { "format": "disabled" }, - "index": "analyzed", + "index": true, "omit_norms": true, - "type": "string" + "type": "text" }, "match": "message", "match_mapping_type": "string" @@ -24,8 +24,8 @@ { "other_fields": { "mapping": { - "index": "not_analyzed", - "type": "string" + "index": true, + "type": "keyword" }, "match": "*", "match_mapping_type": "string" @@ -37,8 +37,8 @@ "type": "date" }, "@version": { - "index": "not_analyzed", - "type": "string" + "index": true, + "type": "keyword" }, "creation_time": { "type": "date" diff --git a/releasenotes/notes/update-monasca-elasticsearch-template-41492c59acaf92b1.yaml b/releasenotes/notes/update-monasca-elasticsearch-template-41492c59acaf92b1.yaml new file mode 100644 index 0000000000..bad5b59fae --- /dev/null +++ b/releasenotes/notes/update-monasca-elasticsearch-template-41492c59acaf92b1.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fixes `LP#1892376 + `__ by updating + deprecated syntax in the Monasca Elasticsearch template.