Skip to content

Instantly share code, notes, and snippets.

@mjaromi
Created February 18, 2021 10:45
Show Gist options
  • Save mjaromi/3065f19a49334c3108af26ab88108f6e to your computer and use it in GitHub Desktop.
Save mjaromi/3065f19a49334c3108af26ab88108f6e to your computer and use it in GitHub Desktop.
AWS ElasticSearch Cluster Health
aws es list-domain-names | jq -r .DomainNames[].DomainName | while read dn; do echo -ne "$dn - " ; curl -sk https://$(aws es describe-elasticsearch-domain --domain-name ${dn} | jq -r .DomainStatus.Endpoints.vpc)/_cluster/health | jq .status ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment