Instantly share code, notes, and snippets.

@EyePulp /template.js Secret
Created Jan 31, 2014

Embed
What would you like to do?
{
logstash: {
order: 0,
template: "logstash-*",
settings: {
index.analysis.analyzer.
default.stopwords: "_none_",
index.refresh_interval: "5s",
index.analysis.analyzer.
default.type: "standard"
},
mappings: {
_default_: {
dynamic_templates: [{
string_fields: {
mapping: {
type: "multi_field",
fields: {
raw: {
index: "not_analyzed",
ignore_above: 256,
type: "string"
},
{
name
}: {
index: "analyzed",
omit_norms: true,
type: "string"
}
}
},
match_mapping_type: "string",
match: "*"
}
}],
properties: {
geoip: {
dynamic: true,
path: "full",
properties: {
location: {
type: "geo_point"
}
},
type: "object"
},
@version: {
index: "not_analyzed",
type: "string"
}
},
_all: {
enabled: true
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment