From: Simon Pasquier Date: Fri, 27 Jan 2017 12:39:43 +0000 (+0100) Subject: Fix index template for notification messages X-Git-Tag: mcp0.5~1 X-Git-Url: https://gerrit.mcp.mirantis.com/gitweb?p=salt-formulas%2Felasticsearch.git;a=commitdiff_plain;h=refs%2Fchanges%2F67%2F967%2F1 Fix index template for notification messages Change-Id: I6ec81d41d52427ab68484e5482e3c14388b58963 --- diff --git a/elasticsearch/files/es_template_notification.json b/elasticsearch/files/es_template_notification.json index e19c907..6754ffd 100644 --- a/elasticsearch/files/es_template_notification.json +++ b/elasticsearch/files/es_template_notification.json @@ -13,10 +13,6 @@ "index": "not_analyzed", "type": "string" }, - "programname": { - "index": "not_analyzed", - "type": "string" - }, "Hostname": { "index": "not_analyzed", "type": "string" @@ -33,10 +29,6 @@ "index": "not_analyzed", "type": "long" }, - "syslogfacility": { - "index": "not_analyzed", - "type": "long" - }, "Type": { "index": "not_analyzed", "type": "string" @@ -49,22 +41,6 @@ "index": "not_analyzed", "type": "string" }, - "openstack_role": { - "type": "string", - "analyzer": "ost_roles" - }, - "openstack_region": { - "index": "not_analyzed", - "type": "string" - }, - "openstack_release": { - "index": "not_analyzed", - "type": "string" - }, - "deployment_id": { - "index": "not_analyzed", - "type": "string" - }, "request_id": { "index": "not_analyzed", "type": "string" @@ -84,26 +60,13 @@ "created_at": { "type": "date", "format": "dateOptionalTime" + }, + "publisher": { + "type": "not_analyzed", + "format": "string" } } } }, - "settings": { - "analysis": { - "tokenizer": { - "comma" : { - "type": "pattern", - "pattern": "," - } - }, - "analyzer": { - "ost_roles": { - "type": "custom", - "tokenizer": "comma", - "filter": ["lowercase"] - } - } - } - }, "template": "notification-*" }