Created
July 3, 2013 16:32
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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