-
-
Save msimos/1e080f47870a9b309444 to your computer and use it in GitHub Desktop.
Set doc_values to true for all dynamic fields in the logstash template
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", | |
"index.query.default_field": "message" | |
}, | |
"mappings" : { | |
"_default_" : { | |
"dynamic_templates" : [ { | |
"string_fields" : { | |
"mapping" : { | |
"index" : "analyzed", | |
"omit_norms" : true, | |
"type" : "string", | |
"fields" : { | |
"raw" : { | |
"ignore_above" : 256, | |
"index" : "not_analyzed", | |
"type" : "string", | |
"doc_values" : true | |
} | |
} | |
}, | |
"match_mapping_type" : "string", | |
"match" : "*" | |
}}, | |
{ | |
"other_fields" : { | |
"match": "*", | |
"match_mapping_type": "*", | |
"mapping": { | |
"doc_values" : true | |
} | |
} | |
} | |
], | |
"_all" : { | |
"enabled" : false | |
}, | |
"properties" : { | |
"geoip" : { | |
"path" : "full", | |
"dynamic" : true, | |
"type" : "object", | |
"properties" : { | |
"location" : { | |
"type" : "geo_point", | |
"doc_values" : true | |
} | |
} | |
}, | |
"@version" : { | |
"index" : "not_analyzed", | |
"type" : "string", | |
"doc_values" : true | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment