|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * logging/efk-logging-elasticsearch.adoc |
| 4 | + |
| 5 | +[id="efk-logging-elasticsearch-status-example-{context}"] |
| 6 | += Viewing Elasticsearch component status |
| 7 | + |
| 8 | +You can view the status for a number of Elasticsearch components. |
| 9 | + |
| 10 | +Elasticsearch indices:: |
| 11 | +You can view the status of the Elasticsearch indices. |
| 12 | + |
| 13 | +. Get the name of an Elasticsearch pod: |
| 14 | ++ |
| 15 | +---- |
| 16 | +$ oc get pods --selector component=elasticsearch -o name |
| 17 | +
|
| 18 | +pod/elasticsearch-cdm-1godmszn-1-6f8495-vp4lw |
| 19 | +pod/elasticsearch-cdm-1godmszn-2-5769cf-9ms2n |
| 20 | +pod/elasticsearch-cdm-1godmszn-3-f66f7d-zqkz7 |
| 21 | +---- |
| 22 | + |
| 23 | +. Get the status of the indices: |
| 24 | ++ |
| 25 | +---- |
| 26 | +$ oc exec elasticsearch-cdm-1godmszn-1-6f8495-vp4lw -- indices |
| 27 | +
|
| 28 | +Defaulting container name to elasticsearch. |
| 29 | +Use 'oc describe pod/elasticsearch-cdm-1godmszn-1-6f8495-vp4lw -n openshift-logging' to see all of the containers in this pod. |
| 30 | +Wed Apr 10 05:42:12 UTC 2019 |
| 31 | +health status index uuid pri rep docs.count docs.deleted store.size pri.store.size |
| 32 | +red open .kibana.647a750f1787408bf50088234ec0edd5a6a9b2ac N7iCbRjSSc2bGhn8Cpc7Jg 2 1 |
| 33 | +green open .operations.2019.04.10 GTewEJEzQjaus9QjvBBnGg 3 1 2176114 0 3929 1956 |
| 34 | +green open .operations.2019.04.11 ausZHoKxTNOoBvv9RlXfrw 3 1 1494624 0 2947 1475 |
| 35 | +green open .kibana 9Fltn1D0QHSnFMXpphZ--Q 1 1 1 0 0 0 |
| 36 | +green open .searchguard chOwDnQlSsqhfSPcot1Yiw 1 1 5 1 0 0 |
| 37 | +---- |
| 38 | + |
| 39 | + |
| 40 | +Elasticsearch pods:: |
| 41 | +You can view the status of the Elasticsearch pods. |
| 42 | + |
| 43 | +. Get the name of a pod: |
| 44 | ++ |
| 45 | +---- |
| 46 | +$ oc get pods --selector component=elasticsearch -o name |
| 47 | +
|
| 48 | +pod/elasticsearch-cdm-1godmszn-1-6f8495-vp4lw |
| 49 | +pod/elasticsearch-cdm-1godmszn-2-5769cf-9ms2n |
| 50 | +pod/elasticsearch-cdm-1godmszn-3-f66f7d-zqkz7 |
| 51 | +---- |
| 52 | + |
| 53 | +. Get the status of a pod: |
| 54 | ++ |
| 55 | +---- |
| 56 | +oc describe pod elasticsearch-cdm-1godmszn-1-6f8495-vp4lw |
| 57 | +---- |
| 58 | ++ |
| 59 | +The output includes the following status information: |
| 60 | ++ |
| 61 | +---- |
| 62 | +.... |
| 63 | +Status: Running |
| 64 | +
|
| 65 | +.... |
| 66 | +
|
| 67 | +Containers: |
| 68 | + elasticsearch: |
| 69 | + Container ID: cri-o://b7d44e0a9ea486e27f47763f5bb4c39dfd2 |
| 70 | + State: Running |
| 71 | + Started: Mon, 08 Apr 2019 10:17:56 -0400 |
| 72 | + Ready: True |
| 73 | + Restart Count: 0 |
| 74 | + Readiness: exec [/usr/share/elasticsearch/probe/readiness.sh] delay=10s timeout=30s period=5s #success=1 #failure=3 |
| 75 | +
|
| 76 | +.... |
| 77 | +
|
| 78 | + proxy: |
| 79 | + Container ID: cri-o://3f77032abaddbb1652c116278652908dc01860320b8a4e741d06894b2f8f9aa1 |
| 80 | + State: Running |
| 81 | + Started: Mon, 08 Apr 2019 10:18:38 -0400 |
| 82 | + Ready: True |
| 83 | + Restart Count: 0 |
| 84 | +
|
| 85 | +.... |
| 86 | +
|
| 87 | +Conditions: |
| 88 | + Type Status |
| 89 | + Initialized True |
| 90 | + Ready True |
| 91 | + ContainersReady True |
| 92 | + PodScheduled True |
| 93 | +
|
| 94 | +.... |
| 95 | +
|
| 96 | +Events: <none> |
| 97 | +---- |
| 98 | + |
| 99 | +Elasticsearch deployment configuration:: |
| 100 | +You can view the status of the Elasticsearch deployment configuration. |
| 101 | + |
| 102 | +. Get the name of a deployment configuration: |
| 103 | ++ |
| 104 | +---- |
| 105 | +$ oc get deployment --selector component=elasticsearch -o name |
| 106 | +
|
| 107 | +deployment.extensions/elasticsearch-cdm-1gon-1 |
| 108 | +deployment.extensions/elasticsearch-cdm-1gon-2 |
| 109 | +deployment.extensions/elasticsearch-cdm-1gon-3 |
| 110 | +---- |
| 111 | + |
| 112 | +. Get the deployment configuration status: |
| 113 | ++ |
| 114 | +---- |
| 115 | +$ oc describe deployment elasticsearch-cdm-1gon-1 |
| 116 | +---- |
| 117 | ++ |
| 118 | +The output includes the following status information: |
| 119 | ++ |
| 120 | +---- |
| 121 | +.... |
| 122 | + Containers: |
| 123 | + elasticsearch: |
| 124 | + Image: quay.io/openshift/origin-logging-elasticsearch5:latest |
| 125 | + Readiness: exec [/usr/share/elasticsearch/probe/readiness.sh] delay=10s timeout=30s period=5s #success=1 #failure=3 |
| 126 | +
|
| 127 | +.... |
| 128 | +
|
| 129 | +Conditions: |
| 130 | + Type Status Reason |
| 131 | + ---- ------ ------ |
| 132 | + Progressing Unknown DeploymentPaused |
| 133 | + Available True MinimumReplicasAvailable |
| 134 | +
|
| 135 | +.... |
| 136 | +
|
| 137 | +Events: <none> |
| 138 | +---- |
| 139 | + |
| 140 | +Elasticsearch ReplicaSet:: |
| 141 | +You can view the status of the Elasticsearch ReplicaSet. |
| 142 | + |
| 143 | +. Get the name of a replica set: |
| 144 | ++ |
| 145 | +---- |
| 146 | +$ oc get replicaSet --selector component=elasticsearch -o name |
| 147 | +
|
| 148 | +replicaset.extensions/elasticsearch-cdm-1gon-1-6f8495 |
| 149 | +replicaset.extensions/elasticsearch-cdm-1gon-2-5769cf |
| 150 | +replicaset.extensions/elasticsearch-cdm-1gon-3-f66f7d |
| 151 | +---- |
| 152 | + |
| 153 | +. Get the status of the replica set: |
| 154 | ++ |
| 155 | +---- |
| 156 | +$ oc describe replicaSet elasticsearch-cdm-1gon-1-6f8495 |
| 157 | +---- |
| 158 | ++ |
| 159 | +The output includes the following status information: |
| 160 | ++ |
| 161 | +---- |
| 162 | +.... |
| 163 | + Containers: |
| 164 | + elasticsearch: |
| 165 | + Image: quay.io/openshift/origin-logging-elasticsearch5:latest |
| 166 | + Readiness: exec [/usr/share/elasticsearch/probe/readiness.sh] delay=10s timeout=30s period=5s #success=1 #failure=3 |
| 167 | +
|
| 168 | +.... |
| 169 | +
|
| 170 | +Events: <none> |
| 171 | +---- |
| 172 | + |
| 173 | + |
0 commit comments