Last active
September 17, 2017 17:26
-
-
Save WPsites/4685598 to your computer and use it in GitHub Desktop.
Elasticsearch index template for logstash that contains additional NGINX fields
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" : { | |
"number_of_shards" : 5, | |
"index.cache.field.type" : "soft", | |
"index.refresh_interval" : "5s", | |
"index.store.compress.stored" : true, | |
"index.query.default_field" : "@message", | |
"index.routing.allocation.total_shards_per_node" : 5 | |
}, | |
"mappings" : { | |
"_default_" : { | |
"_all" : {"enabled" : false}, | |
"properties" : { | |
"@message": { "type": "string", "index": "analyzed" }, | |
"@source": { "type": "string", "index": "not_analyzed" }, | |
"@source_host": { "type": "string", "index": "not_analyzed" }, | |
"@source_path": { "type": "string", "index": "not_analyzed" }, | |
"@tags": { "type": "string", "index": "not_analyzed" }, | |
"@timestamp": { "type": "date", "index": "not_analyzed" }, | |
"@type": { "type": "string", "index": "not_analyzed" } | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment