Last active
November 29, 2017 08:06
-
-
Save kyoh86/596d0224fb8c25e3a4f7cb8693f04a33 to your computer and use it in GitHub Desktop.
Elasticsearchの全てのインデックス設定かえるくん(例はreplicas)
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 -sg 'http://localhost:9200/*/_settings' \ | |
| | jq -r 'to_entries | |
| | .[] | |
| | "curl -sg -XPUT http://localhost:9200/" | |
| + .key + "/_settings -d " + ( | |
| {index:{number_of_replicas: 2}}|tojson|@sh | |
| )' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment