Skip to content

Instantly share code, notes, and snippets.

@ento
Forked from drawks/gist:1556276
Last active December 15, 2015 08:59
Show Gist options
  • Save ento/5234873 to your computer and use it in GitHub Desktop.
Save ento/5234873 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