Advertisement
hivefans

es-template.json

Jan 1st, 2017
462
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.82 KB | None | 0 0
  1. {
  2.   "template": "filebeat-*",
  3.   "settings": {
  4.     "index.refresh_interval": "5s"
  5.   },
  6.   "mappings": {
  7.     "_default_": {
  8.       "_all": {
  9.         "enabled": true,
  10.         "norms": {
  11.           "enabled": false
  12.         }
  13.       },
  14.       "dynamic_templates": [
  15.         {
  16.           "template1": {
  17.             "mapping": {
  18.               "doc_values": true,
  19.               "ignore_above": 1024,
  20.               "index": "not_analyzed",
  21.               "type": "{dynamic_type}"
  22.             },
  23.             "match": "*"
  24.           }
  25.         }
  26.       ],
  27.       "properties": {
  28.         "message": {
  29.           "type": "string",
  30.           "index": "no"
  31.         },
  32.         "@version": {
  33.           "type": "string",
  34.           "index": "no"
  35.         },
  36.         "@timestamp": {
  37.           "type": "date"
  38.         },
  39.         "type" : {
  40.           "type" : "string",
  41.           "index": "not_analyzed"
  42.         },
  43.         "input_type" : {
  44.           "type" : "string",
  45.           "index": "no"
  46.         },
  47.         "beat" : {
  48.           "properties" : {
  49.             "hostname" : {
  50.               "type" : "string",
  51.               "index": "not_analyzed",
  52.               "doc_values": "true"
  53.             },
  54.             "name" : {
  55.               "type" : "string",
  56.               "index": "not_analyzed",
  57.               "doc_values": "true"
  58.             }
  59.           }
  60.         },
  61.         "source" : {
  62.           "type" : "string",
  63.           "index": "no"
  64.         },
  65.         "offset": {
  66.           "type": "long",
  67.           "index": "no"
  68.         },
  69.         "count" : {
  70.           "type" : "long",
  71.           "index": "no"
  72.         },
  73.         "host" : {
  74.           "type" : "string",
  75.           "index": "not_analyzed"
  76.         },
  77.         "tags" : {
  78.           "type" : "string",
  79.           "index": "not_analyzed"
  80.         }
  81.       }
  82.     }
  83.   }
  84. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement