Skip to content

Instantly share code, notes, and snippets.

@willejs
Created October 28, 2013 18:09
Show Gist options
  • Save willejs/7201687 to your computer and use it in GitHub Desktop.
Save willejs/7201687 to your computer and use it in GitHub Desktop.
logstash elasticsearch template
{
"order": 0,
"template": "logstash-*",
"settings": {
"index.store.compress.stored": "true",
"index.number_of_shards": "20"
},
"mappings": {
"_default_": {
"properties": {
"@fields": {
"dynamic": true,
"path": "full",
"properties": {
"thread_name": {
"type": "string",
"index": "not_analyzed"
},
"service": {
"type": "string",
"index": "not_analyzed"
},
"level": {
"type": "string",
"index": "not_analyzed"
},
"level_value": {
"type": "integer",
"index": "not_analyzed"
},
"clientToken": {
"type": "string",
"index": "not_analyzed"
},
"clide": {
"type": "string",
"index": "not_analyzed"
},
"username": {
"type": "string",
"index": "not_analyzed"
},
"source": {
"type": "string",
"index": "not_analyzed"
}
},
"type": "object"
},
"@timestamp": {
"index": "not_analyzed",
"type": "date"
},
"@message": {
"index": "analyzed",
"type": "string"
},
"@source": {
"index": "not_analyzed",
"type": "string"
},
"@type": {
"index": "not_analyzed",
"type": "string"
},
"@tags": {
"index": "not_analyzed",
"type": "string"
},
"@source_host": {
"index": "not_analyzed",
"type": "string"
},
"@source_path": {
"index": "not_analyzed",
"type": "string"
}
},
"_all": {
"enabled": false
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment