Created
April 27, 2016 11:04
-
-
Save s-fujimoto/41b1030fb3912ca5521006da0eaedfac to your computer and use it in GitHub Desktop.
Elasticsearch Index Template file for CloudFront log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"template": "cloudfront-logs-*", | |
"mappings": { | |
"logs": { | |
"_source": { | |
"enabled": false | |
}, | |
"_all": { | |
"enabled": false | |
}, | |
"dynamic_templates": [ | |
{ | |
"string_fields": { | |
"mapping": { | |
"index": "not_analyzed", | |
"type": "string" | |
}, | |
"match_mapping_type": "string", | |
"match": "*" | |
} | |
} | |
], | |
"properties": { | |
"geoip" : { | |
"dynamic": true, | |
"properties" : { | |
"ip": { "type": "ip" }, | |
"location" : { "type" : "geo_point" }, | |
"latitude" : { "type" : "float" }, | |
"longitude" : { "type" : "float" } | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment