Skip to content

Instantly share code, notes, and snippets.

@sgilligan
Created February 26, 2018 00:20
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 sgilligan/05c493868e553b1aca8a0b4ddbd661dc to your computer and use it in GitHub Desktop.
Save sgilligan/05c493868e553b1aca8a0b4ddbd661dc to your computer and use it in GitHub Desktop.
{
"template": "logs-*",
"settings":
{
"number_of_shards": 1,
"number_of_replicas": 0,
"index":
{
"refresh_interval": "30s",
"query": {
"default_field": "message"
},
"routing": {
"allocation.total_shards_per_node": 1
}
}
},
"mappings": {
"_default_": {
"_all": {
"enabled": false,
"norms": false
},
"_source": {
"enabled": true
},
"dynamic_templates": [{
"string_fields": {
"match": "*",
"match_mapping_type": "string",
"mapping": {
"type": "text",
"index": true,
"norms": false,
"fields": {
"raw": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
}],
"properties": {
"@timestamp": { "type": "date", "index": false },
"@version": { "type": "text", "index": false },
"fields": { "type": "object", "dynamic": true }
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment