Skip to content

Instantly share code, notes, and snippets.

@meineerde
Created January 16, 2013 17:26
Show Gist options
  • Save meineerde/4548982 to your computer and use it in GitHub Desktop.
Save meineerde/4548982 to your computer and use it in GitHub Desktop.
Elastissearch template for Logstash
curl -XPUT 'http://localhost:9200/_template/template_logstash/' -d '
{
"template": "logstash-*",
"settings": {
"index.cache.field.type" : "soft",
"index.refresh_interval" : "5s",
"index.store.compress.stored" : true,
"index.store.compress.tv" : true,
"index.query.default_field" : "@message"
},
"mappings": {
"_default_": {
"_source": { "compress": "true" },
"_all" : {"enabled" : false}
}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment