Created
May 25, 2017 21:29
-
-
Save mwinters0/280e121e7cd069020b7a84850bacc6b4 to your computer and use it in GitHub Desktop.
Find which nodes in your elasticsearch cluster are missing the cloud-aws plugin
This file contains 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
#!/bin/bash | |
#Assumes that you already have jq installed | |
curl 'localhost:9200/_nodes' | jq '.nodes[] | if (.plugins | map(.name == "cloud-aws") | any) == false then {name: .name, ip: .ip} else empty end' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment