Skip to content

Commit 2bcf553

Browse files
authored
Merge pull request #14305 from mburke5678/BZ-1691800
Fluentd examples are using etcd pod names
2 parents 3b535e4 + ae43db4 commit 2bcf553

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

modules/efk-logging-fluentd-log-viewing.adoc

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ How you view logs depends upon the `LOGGING_FILE_PATH` setting.
1111
where the pod is located, to print out the contents of Fluentd log files:
1212
+
1313
----
14-
$ oc exec <pod> -- logs <1>
14+
$ oc exec <any-fluentd-pod> -- logs <1>
1515
----
16-
<1> Specify the name of the Fluentd pod. Note the space before `logs`.
16+
<1> Specify the name of a Fluentd pod. Note the space before `logs`.
1717
+
1818
For example:
1919
+
2020
----
21-
$ oc exec etcd-member-ip-30.ec2.internal -n kube-system -- logs
21+
$ oc exec fluentd-ht42r -n openshift-logging -- logs
2222
----
2323
+
2424
To view the current setting:
@@ -32,16 +32,14 @@ You can retrieve the logs with the `oc logs [-f] <pod_name>` command, where the
3232
is optional, from the project where the pod is located.
3333
+
3434
----
35-
$ oc logs -f <pod> <1>
35+
$ oc logs -f <any-fluentd-pod> <1>
3636
----
37-
<1> Specify the name of the Fluentd pod. Use `-f` option to follow what is being written into the logs.
37+
<1> Specify the name of a Fluentd pod. Use the `-f` option to follow what is being written into the logs.
3838
+
3939
For example
4040
+
4141
----
42-
$ oc logs -f etcd-member-ip-30.ec2.internal -n kube-system
42+
$ oc logs -f fluentd-ht42r -n openshift-logging
4343
----
4444
+
4545
The contents of log files are printed out, starting with the oldest log.
46-
47-

0 commit comments

Comments
 (0)