Created
September 11, 2014 14:32
-
-
Save unicolet/b42ff8a8f57e6f938652 to your computer and use it in GitHub Desktop.
Elastisearch template for apache extended log format
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":"logstash-*", | |
"settings":{ | |
"index.refresh_interval":"5s" | |
}, | |
"mappings":{ | |
"_default_":{ | |
"dynamic_templates":[ | |
{ | |
"string_fields":{ | |
"match_mapping_type":"string", | |
"match":"*", | |
"mapping":{ | |
"index":"analyzed", | |
"omit_norms":true, | |
"type":"string", | |
"fields":{ | |
"raw":{ | |
"index":"not_analyzed", | |
"ignore_above":256, | |
"type":"string" | |
} | |
} | |
} | |
} | |
} | |
], | |
"properties":{ | |
"geoip":{ | |
"dynamic":true, | |
"path":"full", | |
"properties":{ | |
"location":{ | |
"type":"geo_point" | |
} | |
}, | |
"type":"object" | |
}, | |
"@version":{ | |
"index":"not_analyzed", | |
"type":"string" | |
}, | |
"referer":{ | |
"index":"not_analyzed", | |
"type":"string" | |
}, | |
"request":{ | |
"index":"not_analyzed", | |
"type":"string" | |
}, | |
"responsetime":{ | |
"type":"long" | |
}, | |
"bytes":{ | |
"type":"long" | |
} | |
}, | |
"_all":{ | |
"enabled":true | |
} | |
} | |
}, | |
"aliases":{ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment