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-*"
}