Skip to content

Instantly share code, notes, and snippets.

@rterbush
Forked from mrlesmithjr/elasticsearch-template.json
Last active January 28, 2016 22:14
Show Gist options
  • Save rterbush/dd6864ea32edc290009c to your computer and use it in GitHub Desktop.
Save rterbush/dd6864ea32edc290009c to your computer and use it in GitHub Desktop.
{
"template" : "logstash-*",
"settings" : {
"index.refresh_interval" : "5s"
},
"mappings" : {
"_default_" : {
"_all" : {"enabled" : true},
"dynamic_templates" : [ {
"string_fields" : {
"match" : "*",
"match_mapping_type" : "string",
"mapping" : {
"type" : "string", "index" : "analyzed", "omit_norms" : true,
"fields" : {
"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" }
}
},
"actconn": { "type": "integer", "index": "not_analyzed" },
"backend_queue": { "type": "integer", "index": "not_analyzed" },
"beconn": { "type": "integer", "index": "not_analyzed" },
"bytes_read": { "type": "integer", "index": "not_analyzed" },
"client_ip": { "type": "ip", "index": "not_analyzed" },
"feconn": { "type": "integer", "index": "not_analyzed" },
"http_status_code": { "type": "integer", "index": "not_analyzed" },
"srv_queue": { "type": "integer", "index": "not_analyzed" },
"srvconn": { "type": "integer", "index": "not_analyzed" },
"time_backend_connect": { "type": "integer", "index": "not_analyzed" },
"time_backend_response": { "type": "integer", "index": "not_analyzed" },
"time_duration": { "type": "integer", "index": "not_analyzed" },
"time_queue": { "type": "integer", "index": "not_analyzed" },
"time_request": { "type": "integer", "index": "not_analyzed" }
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment