Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 570 Bytes

04.elasticsearch.md

File metadata and controls

13 lines (11 loc) · 570 Bytes

Elasticsearch cheatsheet

Get Elasticsearch Shard information

$ oc exec -it [Elasticsearch-pod-name] -n openshift-logging -c elasticsearch -- ¥
  curl 'https://localhost:9200/_cat/shards?v&s=index' ¥
  --key /etc/elasticsearch/secret/admin-key ¥
  --cert /etc/elasticsearch/secret/admin-cert ¥
  --cacert /etc/elasticsearch/secret/admin-ca