Skip to content

Instantly share code, notes, and snippets.

@devster31
Created June 23, 2015 00:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devster31/bddd6701f0838f217809 to your computer and use it in GitHub Desktop.
Save devster31/bddd6701f0838f217809 to your computer and use it in GitHub Desktop.
elasticsearch apache_access template
{
"order": 0,
"template": "*_apache_access",
"settings": {},
"mappings": {
"apache_logs": {
"properties": {
"country": {
"type": "string"
},
"referer": {
"type": "string"
},
"agent": {
"type": "string"
},
"code": {
"type": "long"
},
"method": {
"type": "string"
},
"city": {
"type": "string"
},
"coordinates": {
"type": "geo_point"
},
"path": {
"type": "string"
},
"@timestamp": {
"format": "dateOptionalTime",
"type": "date"
},
"size": {
"type": "long"
},
"host": {
"type": "ip"
},
"tag": {
"type": "string"
},
"user": {
"type": "string"
}
}
}
},
"aliases": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment