Skip to content

Instantly share code, notes, and snippets.

@WintersMichael
Created May 25, 2017 21:29
Show Gist options
  • Save WintersMichael/280e121e7cd069020b7a84850bacc6b4 to your computer and use it in GitHub Desktop.
Save WintersMichael/280e121e7cd069020b7a84850bacc6b4 to your computer and use it in GitHub Desktop.
Find which nodes in your elasticsearch cluster are missing the cloud-aws plugin
#!/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