Advertisement
Guest User

Untitled

a guest
Nov 7th, 2018
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.61 KB | None | 0 0
  1. {
  2.   "order": -1,
  3.   "version" : 60004,
  4.   "template": "es_fields_mapping*",
  5.   "settings": {
  6.     "index.number_of_shards": 1,
  7.     "index.number_of_replicas": 1,
  8.     "index.refresh_interval": "30s"
  9.   },
  10.   "mappings": {
  11.      "_default_": {
  12.         "dynamic_templates": [
  13.            {
  14.               "message_field": {
  15.                  "mapping": {
  16.                     "norms": false,
  17.                     "type": "text"
  18.                  },
  19.                  "match_mapping_type": "string",
  20.                  "match": "message"
  21.               }
  22.            },
  23.            {
  24.               "time_field": {
  25.                 "match_mapping_type": "date",
  26.                 "match": "@timestamp",
  27.                 "mapping": {
  28.                  "type": "date",
  29.                   "format": "dd/MMM/YYYY:HH:mm:ss Z||dd/MMM/YYYY:HH:mm:ss||dd/MM/YYYY:HH:mm:ss Z||dd/MM/YYYY:HH:mm:ss||dd/MM/YYYY:H:m:s||dd/MM/YYYY:HH:mm:ss Z||dd/MM/YYYY:H:m:s Z||YYYY/MM/dd H:m:s||YYYY/MM/dd H:m:s Z||MM/dd H:m:s||MM/dd HH:mm:ss||dd/MMM/YYYY:H:m:s Z||EEE MMM dd H:m:s YYYY||MMM  d HH:mm:ss||MMM dd HH:mm:ss"
  30.                 }
  31.               }
  32.            },
  33.            {
  34.               "byte_field": {
  35.                 "match_mapping_type": "long",
  36.                 "match": "bytes",
  37.                 "mapping": {
  38.                   "type": "long"
  39.                 }
  40.               }
  41.            },
  42.            {
  43.               "string_fields": {
  44.                  "match_mapping_type": "string",
  45.                  "match": "*",
  46.                  "mapping": {
  47.                     "norms": false,
  48.                     "type": "text",
  49.                     "fields": {
  50.                        "keyword": {
  51.                           "ignore_above": 256,
  52.                           "type": "keyword"
  53.                        }
  54.                     }
  55.                  }
  56.               }
  57.            }
  58.         ],
  59.         "properties": {
  60.            "geoip": {
  61.               "dynamic": true,
  62.               "properties": {
  63.                 "location": {
  64.                   "type": "geo_point"
  65.                 },
  66.                 "ip": {
  67.                   "type": "ip"
  68.                 },
  69.                 "continent_code": {
  70.                   "type": "keyword"
  71.                 },
  72.                 "country_name": {
  73.                   "type": "keyword"
  74.                 },
  75.                 "latitude": {
  76.                   "type": "half_float"
  77.                 },
  78.                 "longitude": {
  79.                   "type": "half_float"
  80.                 }
  81.               }
  82.            },
  83.            "@version": {
  84.              "type": "keyword"
  85.            }
  86.         }
  87.      }
  88.   }
  89. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement