Advertisement
Guest User

Elasticsearch Index Template - Improper Typing (Pre)

a guest
Jul 15th, 2016
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 4.57 KB | None | 0 0
  1. {
  2.   "test-template": {
  3.     "order": 1,
  4.     "template": "logstash-*",
  5.     "mappings": {
  6.       "_default_": {
  7.         "dynamic_templates": [
  8.           {
  9.             "boolean_fields": {
  10.               "mapping": {
  11.                 "index": "not_analyzed",
  12.                 "omit_norms": true,
  13.                 "doc_values": true,
  14.                 "type": "boolean"
  15.               },
  16.               "match": "*_boolean"
  17.             }
  18.           },
  19.           {
  20.             "integer_fields": {
  21.               "mapping": {
  22.                 "index": "not_analyzed",
  23.                 "omit_norms": true,
  24.                 "doc_values": true,
  25.                 "type": "integer"
  26.               },
  27.               "match": "*_integer"
  28.             }
  29.           },
  30.           {
  31.             "long_fields": {
  32.               "mapping": {
  33.                 "index": "not_analyzed",
  34.                 "omit_norms": true,
  35.                 "doc_values": true,
  36.                 "type": "long"
  37.               },
  38.               "match": "*_long"
  39.             }
  40.           },
  41.           {
  42.             "float_fields": {
  43.               "mapping": {
  44.                 "index": "not_analyzed",
  45.                 "omit_norms": true,
  46.                 "doc_values": true,
  47.                 "type": "float"
  48.               },
  49.               "match": "*_float"
  50.             }
  51.           },
  52.           {
  53.             "double_fields": {
  54.               "mapping": {
  55.                 "index": "not_analyzed",
  56.                 "omit_norms": true,
  57.                 "doc_values": true,
  58.                 "type": "double"
  59.               },
  60.               "match": "*_double"
  61.             }
  62.           },
  63.           {
  64.             "ip_fields": {
  65.               "mapping": {
  66.                 "index": "not_analyzed",
  67.                 "omit_norms": true,
  68.                 "doc_values": true,
  69.                 "type": "ip"
  70.               },
  71.               "match": "*_ip"
  72.             }
  73.           },
  74.           {
  75.             "geo_point_fields": {
  76.               "mapping": {
  77.                 "index": "not_analyzed",
  78.                 "omit_norms": true,
  79.                 "doc_values": true,
  80.                 "type": "geo_point"
  81.               },
  82.               "match": "*_geo_point"
  83.             }
  84.           },
  85.           {
  86.             "date_fields": {
  87.               "mapping": {
  88.                 "index": "not_analyzed",
  89.                 "omit_norms": true,
  90.                 "doc_values": true,
  91.                 "type": "date"
  92.               },
  93.               "match": "*__date"
  94.             }
  95.           },
  96.           {
  97.             "string_fields": {
  98.               "mapping": {
  99.                 "index": "not_analyzed",
  100.                 "omit_norms": true,
  101.                 "doc_values": true,
  102.                 "type": "string"
  103.               },
  104.               "match": "*_string"
  105.             }
  106.           },
  107.           {
  108.             "nested_items_template": {
  109.               "mapping": {
  110.                 "numeric_detection": false,
  111.                 "date_detection": false,
  112.                 "doc_values": true,
  113.                 "type": "multi_field",
  114.                 "fields": {
  115.                   "raw": {
  116.                     "index": "not_analyzed",
  117.                     "ignore_above": 256,
  118.                     "type": "string"
  119.                   },
  120.                   "{name}": {
  121.                     "index": "analyzed",
  122.                     "type": "{dynamic_type}"
  123.                   }
  124.                 }
  125.               },
  126.               "match": "*",
  127.               "match_mapping_type": "string"
  128.             }
  129.           },
  130.           {
  131.             "string_fields": {
  132.               "mapping": {
  133.                 "index": "analyzed",
  134.                 "omit_norms": true,
  135.                 "date_detection": false,
  136.                 "doc_values": true,
  137.                 "type": "string",
  138.                 "fields": {
  139.                   "raw": {
  140.                     "index": "not_analyzed",
  141.                     "ignore_above": 256,
  142.                     "type": "string"
  143.                   }
  144.                 }
  145.               },
  146.               "match": "*",
  147.               "match_mapping_type": "string"
  148.             }
  149.           }
  150.         ],
  151.         "numeric_detection": false,
  152.         "date_detection": false,
  153.         "properties": {
  154.           "@timestamp": {
  155.             "type": "date"
  156.           },
  157.           "geoip": {
  158.             "properties": {
  159.               "coordinates": {
  160.                 "type": "geo_point"
  161.               },
  162.               "ip": {
  163.                 "type": "ip"
  164.               }
  165.             }
  166.           }
  167.         }
  168.       }
  169.     },
  170.     "aliases": {}
  171.   }
  172. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement