Skip to content

Instantly share code, notes, and snippets.

@anveo
Created September 19, 2013 23:08
Show Gist options
  • Save anveo/6631108 to your computer and use it in GitHub Desktop.
Save anveo/6631108 to your computer and use it in GitHub Desktop.
curl -XPUT http://localhost:9200/_template/logstash_per_index -d'
{
"template": "logstash*",
"settings": {
"index.query.default_field": "message",
"index.cache.field.type": "soft",
"index.store.compress.stored": true },
"mappings": {
"_default_": {
"_all": { "enabled": false },
"properties": {
"message": { "type": "string", "index": "analyzed" }, "@version": { "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