mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
26 lines
710 B
Plaintext
26 lines
710 B
Plaintext
// 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.
|