| 
6 | 6 | [id="cluster-logging-collector-pod-location_{context}"]  | 
7 | 7 | = Viewing logging collector pods  | 
8 | 8 | 
 
  | 
9 |  | -You can view the Fluentd logging collector pods and the corresponding nodes that they are running on. The Fluentd logging collector pods run only in the `openshift-logging` project.  | 
 | 9 | +You can view the logging collector pods and the corresponding nodes that they are running on.  | 
10 | 10 | 
 
  | 
11 | 11 | .Procedure  | 
12 | 12 | 
 
  | 
13 |  | -* Run the following command in the `openshift-logging` project to view the Fluentd logging collector pods and their details:  | 
14 |  | -
  | 
 | 13 | +* Run the following command in a project to view the logging collector pods and their details:  | 
 | 14 | ++  | 
15 | 15 | [source,terminal]  | 
16 | 16 | ----  | 
17 |  | -$ oc get pods --selector component=collector -o wide -n openshift-logging  | 
 | 17 | +$ oc get pods --selector component=collector -o wide -n <project_name>  | 
18 | 18 | ----  | 
19 |  | - | 
 | 19 | ++  | 
20 | 20 | .Example output  | 
21 | 21 | [source,terminal]  | 
22 | 22 | ----  | 
23 | 23 | NAME           READY  STATUS    RESTARTS   AGE     IP            NODE                  NOMINATED NODE   READINESS GATES  | 
24 |  | -fluentd-8d69v  1/1    Running   0          134m    10.130.2.30   master1.example.com   <none>           <none>  | 
25 |  | -fluentd-bd225  1/1    Running   0          134m    10.131.1.11   master2.example.com   <none>           <none>  | 
26 |  | -fluentd-cvrzs  1/1    Running   0          134m    10.130.0.21   master3.example.com   <none>           <none>  | 
27 |  | -fluentd-gpqg2  1/1    Running   0          134m    10.128.2.27   worker1.example.com   <none>           <none>  | 
28 |  | -fluentd-l9j7j  1/1    Running   0          134m    10.129.2.31   worker2.example.com   <none>           <none>  | 
29 |  | -----  | 
30 |  | - | 
31 |  | -////  | 
32 |  | -[source,terminal]  | 
33 |  | -----  | 
34 |  | -$ oc get pods -o wide | grep rsyslog  | 
35 |  | -----  | 
36 |  | - | 
37 |  | -.Example output  | 
38 |  | -[source,terminal]  | 
39 |  | -----  | 
40 |  | -NAME                         READY     STATUS    RESTARTS   AGE     IP            NODE                           NOMINATED NODE   READINESS GATES  | 
41 |  | -rsyslog-5gtfs                1/1       Running   0          3m6s    10.130.0.40   ip-10-0-148-139.ec2.internal   <none>           <none>  | 
42 |  | -rsyslog-67rv6                1/1       Running   0          3m6s    10.128.2.13   ip-10-0-158-206.ec2.internal   <none>           <none>  | 
43 |  | -rsyslog-bqgjn                1/1       Running   0          3m6s    10.131.0.11   ip-10-0-132-167.ec2.internal   <none>           <none>  | 
44 |  | -rsyslog-cjmdp                1/1       Running   0          3m6s    10.129.2.16   ip-10-0-139-191.ec2.internal   <none>           <none>  | 
45 |  | -rsyslog-kqlzh                1/1       Running   0          3m6s    10.129.0.37   ip-10-0-141-243.ec2.internal   <none>           <none>  | 
46 |  | -rsyslog-nhshr                1/1       Running   0          3m6s    10.128.0.41   ip-10-0-143-38.ec2.internal    <none>           <none>  | 
 | 24 | +collector-8d69v  1/1    Running   0          134m    10.130.2.30   master1.example.com   <none>           <none>  | 
 | 25 | +collector-bd225  1/1    Running   0          134m    10.131.1.11   master2.example.com   <none>           <none>  | 
 | 26 | +collector-cvrzs  1/1    Running   0          134m    10.130.0.21   master3.example.com   <none>           <none>  | 
 | 27 | +collector-gpqg2  1/1    Running   0          134m    10.128.2.27   worker1.example.com   <none>           <none>  | 
 | 28 | +collector-l9j7j  1/1    Running   0          134m    10.129.2.31   worker2.example.com   <none>           <none>  | 
47 | 29 | ----  | 
48 |  | -////  | 
0 commit comments