Skip to content

Instantly share code, notes, and snippets.

@skurfuerst
Created August 28, 2014 12:25
Show Gist options
  • Save skurfuerst/e1499f0b178e27d4b13e to your computer and use it in GitHub Desktop.
Save skurfuerst/e1499f0b178e27d4b13e to your computer and use it in GitHub Desktop.
{
"template" : "fusion-log-*",
"settings" : {
"index.refresh_interval" : "5s",
"analysis" : {
"analyzer" : {
"default" : {
"type" : "standard",
"stopwords" : "_none_"
}
}
}
},
"mappings" : {
"_default_" : {
"_all" : {"enabled" : true},
"dynamic_templates" : [ {
"string_fields" : {
"match" : "*",
"match_mapping_type" : "string",
"mapping" : {
"type" : "multi_field",
"fields" : {
"{name}" : {"type": "string", "index" : "analyzed", "omit_norms" : true, "index_options" : "docs"},
"{name}.raw" : {"type": "string", "index" : "not_analyzed", "ignore_above" : 256}
}
}
}
} ],
"properties" : {
"@version": { "type": "string", "index": "not_analyzed" },
"geoip" : {
"type" : "object",
"dynamic": true,
"path": "full",
"properties" : {
"location" : { "type" : "geo_point" }
}
},
"values": {
"type": "object",
"properties": {
"runtime": { "type": "float" },
"runtimeRoundedAtMillisecondPrecision": { "type": "integer" },
"runtimeRoundedAtTenMillisecondPrecision": { "type": "integer" }
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment