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.
{
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-*"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment