SHARE
TWEET

es-template.json

hivefans Jan 1st, 2017 (edited) 102 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.   "template" : "*",
  3.   "order" : 0,
  4.   "settings" : {
  5.     "index.refresh_interval" : "5s",
  6.     "index.number_of_replicas": "0",
  7.    "index.number_of_shards": "6",
  8.    "index.translog.flush_threshold_size": "500mb"
  9.   },
  10.   "mappings" : {
  11.       "dynamic_templates" : [ {
  12.         "message_field" : {
  13.           "path_match" : "message",
  14.           "match_mapping_type" : "string",
  15.           "mapping" : {
  16.             "type" : "text",
  17.             "norms" : false
  18.           }
  19.         }
  20.       }, {
  21.         "string_fields" : {
  22.           "match" : "*",
  23.           "match_mapping_type" : "string",
  24.           "mapping" : {
  25.             "type" : "text", "norms" : false,
  26.             "fields" : {
  27.               "keyword" : { "type": "keyword", "ignore_above": 256 }
  28.             }
  29.           }
  30.         }
  31.       } ],
  32.       "properties" : {
  33.         "@timestamp": { "type": "date"},
  34.         "@version": { "type": "keyword"},
  35.         "geoip"  : {
  36.           "dynamic": true,
  37.           "properties" : {
  38.             "ip": { "type": "ip" },
  39.             "location" : { "type" : "geo_point" },
  40.             "latitude" : { "type" : "half_float" },
  41.             "longitude" : { "type" : "half_float" }
  42.           }
  43.         }
  44.     }
  45.   }
  46. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top