1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/nw-dns-viewlog.adoc
2025-05-28 19:02:23 +00:00

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.