Paladox has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/398662 )

Change subject: Update elasticsearch-template.json to match production
......................................................................

Update elasticsearch-template.json to match production

Change-Id: Ief29981b9fefe04bc73ce1a5da1926fecfee244a
(cherry picked from commit c3e5d0f1053b238d94e0da359434d7d7c2c266b5)
---
M puppet/modules/logstash/files/elasticsearch-template.json
1 file changed, 48 insertions(+), 20 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/vagrant 
refs/changes/62/398662/1

diff --git a/puppet/modules/logstash/files/elasticsearch-template.json 
b/puppet/modules/logstash/files/elasticsearch-template.json
index 7b5dfc0..9716aef 100644
--- a/puppet/modules/logstash/files/elasticsearch-template.json
+++ b/puppet/modules/logstash/files/elasticsearch-template.json
@@ -24,13 +24,16 @@
       "dynamic_templates" : [
         {
           "string_fields" : {
+            "match" : "*",
             "match_mapping_type" : "string",
             "mapping" : {
               "type" : "text",
+              "index" : true,
               "omit_norms" : true,
               "fields" : {
                 "raw" : {
                   "type" : "keyword",
+                  "index" : true,
                   "doc_values": true
                 }
               }
@@ -41,11 +44,13 @@
           "boolean_to_string" : {
             "match_mapping_type" : "boolean",
             "mapping" : {
-              "type" : "keyword",
-              "omit_norms" : true,
-              "fields" : {
-                "raw" : {
-                  "type" : "keyword",
+              "type" : "text",
+              "index" : true,
+              "omit_norms": true,
+              "fields": {
+                "raw": {
+                  "index": true,
+                  "type": "keyword",
                   "doc_values": true
                 }
               }
@@ -56,11 +61,13 @@
           "double_to_string" : {
             "match_mapping_type" : "double",
             "mapping" : {
-              "type" : "keyword",
-              "omit_norms" : true,
-              "fields" : {
-                "raw" : {
-                  "type" : "keyword",
+              "type" : "text",
+              "index" : true,
+              "omit_norms": true,
+              "fields": {
+                "raw": {
+                  "index": true,
+                  "type": "keyword",
                   "doc_values": true
                 }
               }
@@ -71,11 +78,13 @@
           "long_to_string" : {
             "match_mapping_type" : "long",
             "mapping" : {
-              "type" : "keyword",
-              "omit_norms" : true,
-              "fields" : {
-                "raw" : {
-                  "type" : "keyword",
+              "type" : "text",
+              "index" : true,
+              "omit_norms": true,
+              "fields": {
+                "raw": {
+                  "index": true,
+                  "type": "keyword",
                   "doc_values": true
                 }
               }
@@ -86,10 +95,12 @@
       "properties" : {
         "@timestamp" : {
           "type" : "date",
+          "index" : true,
           "doc_values": true
         },
         "@version" : {
           "type" : "keyword",
+          "index" : true,
           "doc_values": true
         },
         "geoip"  : {
@@ -104,26 +115,28 @@
         },
         "host" : {
           "type" : "keyword",
+          "index" : true,
           "doc_values": true
         },
         "level" : {
           "type" : "keyword",
+          "index" : true,
           "doc_values": true
         },
         "message" : {
           "type" : "text",
+          "index" : true,
           "omit_norms" : true
         },
         "normalized_message" : {
           "type": "text",
+          "index" : true,
+          "omit_norms" : true,
           "fields": {
             "raw": {
               "type": "keyword",
+              "index": true,
               "doc_values": true
-            },
-            "normalized_message": {
-              "type" : "text",
-              "omit_norms" : true
             }
           }
         },
@@ -133,17 +146,32 @@
         },
         "tags" : {
           "type" : "keyword",
+          "index" : true,
           "doc_values": true
         },
         "type" : {
           "type" : "keyword",
+          "index" : true,
           "doc_values": true
         },
         "udp_sender" : {
           "type" : "keyword",
+          "index" : true,
+          "doc_values": true
+        },
+        "request_time" : {
+          "type" : "float",
+          "doc_values": true
+        },
+        "upstream_time" : {
+          "type" : "float",
+          "doc_values": true
+        },
+        "response_size" : {
+          "type" : "long",
           "doc_values": true
         }
       }
     }
   }
-}
+}
\ No newline at end of file

-- 
To view, visit https://gerrit.wikimedia.org/r/398662
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ief29981b9fefe04bc73ce1a5da1926fecfee244a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/vagrant
Gerrit-Branch: stretch-migration
Gerrit-Owner: Paladox <thomasmulhall...@yahoo.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to