mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
OCPBUGS-29275 for a fourth try
This commit is contained in:
committed by
openshift-cherrypick-robot
parent
58a77649cb
commit
5b17c1bbeb
25
modules/nw-dns-viewlog.adoc
Normal file
25
modules/nw-dns-viewlog.adoc
Normal file
@@ -0,0 +1,25 @@
|
||||
// Module included in the following assemblies:
|
||||
// * networking/dns-operator.adoc
|
||||
|
||||
:_mod-docs-content-type: PROCEDURE
|
||||
[id="nw-dns-viewlog_{context}"]
|
||||
= Viewing the CoreDNS logs
|
||||
|
||||
You can view CoreDNS logs by using the `oc logs` command.
|
||||
|
||||
.Procedure
|
||||
|
||||
* View the logs of a specific CoreDNS pod by entering the following command:
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
$ oc -n openshift-dns logs -c dns <core_dns_pod_name>
|
||||
----
|
||||
|
||||
* Follow the logs of all CoreDNS pods by entering the following command:
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
$ oc -n openshift-dns logs -c dns -l dns.operator.openshift.io/daemonset-dns=default -f --max-log-requests=<number> <1>
|
||||
----
|
||||
<1> Specifies the number of DNS pods to stream logs from. The maximum is 6.
|
||||
@@ -23,6 +23,8 @@ include::modules/nw-dns-operator-logs.adoc[leveloffset=+1]
|
||||
|
||||
include::modules/nw-dns-loglevel.adoc[leveloffset=+1]
|
||||
|
||||
include::modules/nw-dns-viewlog.adoc[leveloffset=+1]
|
||||
|
||||
include::modules/nw-dns-operatorloglevel.adoc[leveloffset=+1]
|
||||
|
||||
include::modules/nw-dns-cache-tuning.adoc[leveloffset=+1]
|
||||
|
||||
Reference in New Issue
Block a user