Skip to content

Instantly share code, notes, and snippets.

@alistar79
Created July 3, 2013 16:32
Show Gist options
  • Save alistar79/5920196 to your computer and use it in GitHub Desktop.
Save alistar79/5920196 to your computer and use it in GitHub Desktop.
Drop _all field in all new indices created by Logstash in ElasticSearch using curl
curl -XPUT ${ipaddress}:9200/_template/logstash -d '
{
"template": "logstash-*",
"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