Created
March 8, 2018 00:47
-
-
Save portante/cadd4b4b22b89f96645f021fe7d972e4 to your computer and use it in GitHub Desktop.
Dump the current state of all the index shards in an ES cluster under OpenShift.
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 | |
ES_URL='https://localhost:9200' | |
curl_get='curl -s -X GET --cacert /etc/elasticsearch/secret/admin-ca --cert /etc/elasticsearch/secret/admin-cert --key /etc/elasticsearch/secret/admin-key' | |
date | |
$curl_get $ES_URL/_cat/shards?v\&bytes=b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment