Skip to content

Instantly share code, notes, and snippets.

@drawks
Forked from kimchy/gist:1556146
Created January 3, 2012 18:47
Show Gist options
  • Save drawks/1556276 to your computer and use it in GitHub Desktop.
Save drawks/1556276 to your computer and use it in GitHub Desktop.
Enable _source compression in elasticsearch
curl -XPUT 'http://localhost:9200/_template/template_logstash/' -d '
{
"template": "logstash-*",
"mappings": {
"_default_": {
"_source": { "compress": "true" },
}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment