Update String type for Monasca ES template
This updates the Elasticsearch template used by Monasca to persist logs so that is uses the 'new' string types [1]. As an aside it helps to make the template more clear; full text search for log messages, and keyword searches for everything else. [1] https://www.elastic.co/blog/strings-are-dead-long-live-strings Closes-Bug: #1892376 Change-Id: I0cd6bf22d4695d88d93241da4364d170d8d8c80e
This commit is contained in:
@@ -13,9 +13,9 @@
|
|||||||
"fielddata": {
|
"fielddata": {
|
||||||
"format": "disabled"
|
"format": "disabled"
|
||||||
},
|
},
|
||||||
"index": "analyzed",
|
"index": true,
|
||||||
"omit_norms": true,
|
"omit_norms": true,
|
||||||
"type": "string"
|
"type": "text"
|
||||||
},
|
},
|
||||||
"match": "message",
|
"match": "message",
|
||||||
"match_mapping_type": "string"
|
"match_mapping_type": "string"
|
||||||
@@ -24,8 +24,8 @@
|
|||||||
{
|
{
|
||||||
"other_fields": {
|
"other_fields": {
|
||||||
"mapping": {
|
"mapping": {
|
||||||
"index": "not_analyzed",
|
"index": true,
|
||||||
"type": "string"
|
"type": "keyword"
|
||||||
},
|
},
|
||||||
"match": "*",
|
"match": "*",
|
||||||
"match_mapping_type": "string"
|
"match_mapping_type": "string"
|
||||||
@@ -37,8 +37,8 @@
|
|||||||
"type": "date"
|
"type": "date"
|
||||||
},
|
},
|
||||||
"@version": {
|
"@version": {
|
||||||
"index": "not_analyzed",
|
"index": true,
|
||||||
"type": "string"
|
"type": "keyword"
|
||||||
},
|
},
|
||||||
"creation_time": {
|
"creation_time": {
|
||||||
"type": "date"
|
"type": "date"
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
Fixes `LP#1892376
|
||||||
|
<https://bugs.launchpad.net/kolla-ansible/+bug/1892376>`__ by updating
|
||||||
|
deprecated syntax in the Monasca Elasticsearch template.
|
||||||
Reference in New Issue
Block a user