Skip to content

Instantly share code, notes, and snippets.

@jittagornp
Last active October 7, 2017 09:41
Show Gist options
  • Select an option

  • Save jittagornp/4a40f17e8830b340f011661c8be4811e to your computer and use it in GitHub Desktop.

Select an option

Save jittagornp/4a40f17e8830b340f011661c8be4811e to your computer and use it in GitHub Desktop.

Revisions

  1. jittagornp revised this gist Oct 7, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion filebeat-index-template.json
    Original file line number Diff line number Diff line change
    @@ -29,7 +29,7 @@
    "index": "analyzed"
    },
    "offset": {
    "type": "int",
    "type": "integer",
    "doc_values": "true"
    },
    "geoip" : {
  2. jittagornp revised this gist Oct 7, 2017. 1 changed file with 47 additions and 49 deletions.
    96 changes: 47 additions & 49 deletions filebeat-index-template.json
    Original file line number Diff line number Diff line change
    @@ -1,51 +1,49 @@
    {
    mappings: {
    _default_: {
    _all: {
    enabled: true,
    norms: {
    enabled: false
    }
    },
    dynamic_templates: [
    {
    template1: {
    mapping: {
    doc_values: true,
    ignore_above: 1024,
    index: "not_analyzed",
    type: "{dynamic_type}"
    },
    match: "*"
    }
    }
    ],
    properties: {
    @timestamp: {
    type: "date"
    },
    message: {
    type: "string",
    index: "analyzed"
    },
    offset: {
    type: "long",
    doc_values: "true"
    },
    geoip: {
    type: "object",
    dynamic: true,
    properties: {
    location: {
    type: "geo_point"
    }
    }
    }
    }
    }
    },
    settings: {
    index.refresh_interval: "5s"
    },
    template: "filebeat-*"
    "mappings": {
    "_default_": {
    "_all": {
    "enabled": true,
    "norms": {
    "enabled": false
    }
    },
    "dynamic_templates": [
    {
    "template1": {
    "mapping": {
    "doc_values": true,
    "ignore_above": 1024,
    "index": "not_analyzed",
    "type": "{dynamic_type}"
    },
    "match": "*"
    }
    }
    ],
    "properties": {
    "@timestamp": {
    "type": "date"
    },
    "message": {
    "type": "string",
    "index": "analyzed"
    },
    "offset": {
    "type": "int",
    "doc_values": "true"
    },
    "geoip" : {
    "type" : "object",
    "dynamic": true,
    "properties" : {
    "location" : { "type" : "geo_point" }
    }
    }
    }
    }
    },
    "settings": {
    "index.refresh_interval": "5s"
    },
    "template": "filebeat-*"
    }
  3. jittagornp created this gist Oct 7, 2017.
    51 changes: 51 additions & 0 deletions filebeat-index-template.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,51 @@
    {
    mappings: {
    _default_: {
    _all: {
    enabled: true,
    norms: {
    enabled: false
    }
    },
    dynamic_templates: [
    {
    template1: {
    mapping: {
    doc_values: true,
    ignore_above: 1024,
    index: "not_analyzed",
    type: "{dynamic_type}"
    },
    match: "*"
    }
    }
    ],
    properties: {
    @timestamp: {
    type: "date"
    },
    message: {
    type: "string",
    index: "analyzed"
    },
    offset: {
    type: "long",
    doc_values: "true"
    },
    geoip: {
    type: "object",
    dynamic: true,
    properties: {
    location: {
    type: "geo_point"
    }
    }
    }
    }
    }
    },
    settings: {
    index.refresh_interval: "5s"
    },
    template: "filebeat-*"
    }