Skip to content

Commit 61acda8

Browse files
committed
added oc exec elasticsearch-cdm-1godmszn-1-6f8495-vp4lw -- indices
1 parent f5e1767 commit 61acda8

File tree

1 file changed

+87
-57
lines changed

1 file changed

+87
-57
lines changed

modules/efk-logging-elasticsearch-status.adoc

Lines changed: 87 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ status: <1>
5757
----
5858
<1> In the output, the cluster status fields appear in the `status` stanza.
5959
<2> The status of the Elasticsearch cluster, `green`, `red`, `yellow`.
60-
<3> Any status conditions, if present. Any events related to the following conditions are shown:
60+
<3> Any status conditions, if present. The Elasticsearch cluster status indicates the reasons from the scheduler if a pod could not be placed. Any events related to the following conditions are shown:
6161
+
6262
* Container Waiting for both the Elasticsearch and proxy containers,
6363
* Container Terminated for both the Elasticsearch and proxy containers,
@@ -68,6 +68,92 @@ Also, a condition is shown if the node storage passes the high or low watermark
6868
<4> The Elasticsearch nodes in the cluster, with `upgradeStatus`.
6969
<5> The Elasticsearch client, data, and master pods in the cluster, listed under 'failed`, `notReady` or `ready` state.
7070

71+
. To view the status of the Elasticsearch pods:
72+
73+
.. Get the name of a pod:
74+
+
75+
----
76+
$ oc get pods --selector component=elasticsearch -o name
77+
78+
pod/elasticsearch-cdm-1godmszn-1-6f8495-vp4lw
79+
pod/elasticsearch-cdm-1godmszn-2-5769cf-9ms2n
80+
pod/elasticsearch-cdm-1godmszn-3-f66f7d-zqkz7
81+
----
82+
83+
.. Get the status of a pod:
84+
+
85+
----
86+
oc describe pod elasticsearch-cdm-1godmszn-1-6f8495-vp4lw
87+
----
88+
+
89+
The output includes the following status information:
90+
+
91+
----
92+
....
93+
Status: Running
94+
95+
....
96+
97+
Containers:
98+
elasticsearch:
99+
Container ID: cri-o://b7d44e0a9ea486e27f47763f5bb4c39dfd2
100+
State: Running
101+
Started: Mon, 08 Apr 2019 10:17:56 -0400
102+
Ready: True
103+
Restart Count: 0
104+
Readiness: exec [/usr/share/elasticsearch/probe/readiness.sh] delay=10s timeout=30s period=5s #success=1 #failure=3
105+
106+
....
107+
108+
proxy:
109+
Container ID: cri-o://3f77032abaddbb1652c116278652908dc01860320b8a4e741d06894b2f8f9aa1
110+
State: Running
111+
Started: Mon, 08 Apr 2019 10:18:38 -0400
112+
Ready: True
113+
Restart Count: 0
114+
115+
....
116+
117+
Conditions:
118+
Type Status
119+
Initialized True
120+
Ready True
121+
ContainersReady True
122+
PodScheduled True
123+
124+
....
125+
126+
Events: <none>
127+
----
128+
129+
. To view the status of the Elasticsearch indices:
130+
131+
.. Get the name of an Elasticsearch pod:
132+
+
133+
----
134+
$ oc get pods --selector component=elasticsearch -o name
135+
136+
pod/elasticsearch-cdm-1godmszn-1-6f8495-vp4lw
137+
pod/elasticsearch-cdm-1godmszn-2-5769cf-9ms2n
138+
pod/elasticsearch-cdm-1godmszn-3-f66f7d-zqkz7
139+
----
140+
141+
.. Get the status of the indices:
142+
+
143+
----
144+
$ oc exec elasticsearch-cdm-1godmszn-1-6f8495-vp4lw -- indices
145+
146+
Defaulting container name to elasticsearch.
147+
Use 'oc describe pod/elasticsearch-cdm-1godmszn-1-6f8495-vp4lw -n openshift-logging' to see all of the containers in this pod.
148+
Wed Apr 10 05:42:12 UTC 2019
149+
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
150+
red open .kibana.647a750f1787408bf50088234ec0edd5a6a9b2ac N7iCbRjSSc2bGhn8Cpc7Jg 2 1
151+
green open .operations.2019.04.10 GTewEJEzQjaus9QjvBBnGg 3 1 2176114 0 3929 1956
152+
green open .operations.2019.04.11 ausZHoKxTNOoBvv9RlXfrw 3 1 1494624 0 2947 1475
153+
green open .kibana 9Fltn1D0QHSnFMXpphZ--Q 1 1 1 0 0 0
154+
green open .searchguard chOwDnQlSsqhfSPcot1Yiw 1 1 5 1 0 0
155+
----
156+
71157
. To view the status of the Elasticsearch deployment configuration:
72158

73159
.. Get the name of a deployment configuration:
@@ -140,63 +226,7 @@ The output includes the following status information:
140226
Events: <none>
141227
----
142228

143-
. To view the status of the Elasticsearch pods:
144-
145-
.. Get the name of a pod:
146-
+
147-
----
148-
$ oc get pods --selector component=elasticsearch -o name
149-
150-
pod/elasticsearch-cdm-1godmszn-1-6f8495-vp4lw
151-
pod/elasticsearch-cdm-1godmszn-2-5769cf-9ms2n
152-
pod/elasticsearch-cdm-1godmszn-3-f66f7d-zqkz7
153-
----
154-
155-
.. Get the status of a pod:
156-
+
157-
----
158-
oc describe pod elasticsearch-cdm-1godmszn-1-6f8495-vp4lw
159-
----
160-
+
161-
The output includes the following status information:
162-
+
163-
----
164-
....
165-
Status: Running
166-
167-
....
168-
169-
Containers:
170-
elasticsearch:
171-
Container ID: cri-o://b7d44e0a9ea486e27f47763f5bb4c39dfd2
172-
State: Running
173-
Started: Mon, 08 Apr 2019 10:17:56 -0400
174-
Ready: True
175-
Restart Count: 0
176-
Readiness: exec [/usr/share/elasticsearch/probe/readiness.sh] delay=10s timeout=30s period=5s #success=1 #failure=3
177-
178-
....
179-
180-
proxy:
181-
Container ID: cri-o://3f77032abaddbb1652c116278652908dc01860320b8a4e741d06894b2f8f9aa1
182-
State: Running
183-
Started: Mon, 08 Apr 2019 10:18:38 -0400
184-
Ready: True
185-
Restart Count: 0
186-
187-
....
188-
189-
Conditions:
190-
Type Status
191-
Initialized True
192-
Ready True
193-
ContainersReady True
194-
PodScheduled True
195229

196-
....
197-
198-
Events: <none>
199-
----
200230

201231
[id="efk-logging-elasticsearch-status-message{context}"]
202232
== Example condition messages

0 commit comments

Comments
 (0)