Skip to content

Instantly share code, notes, and snippets.

@portante
Last active March 5, 2018 19:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save portante/5395b05e9b996adfe60c12e8261774de to your computer and use it in GitHub Desktop.
Save portante/5395b05e9b996adfe60c12e8261774de to your computer and use it in GitHub Desktop.
Dump the current state of all the indices in an ES cluster under OpenShift
#!/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/indices?v\&bytes=b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment