File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
networking/networking_operators Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ // Module included in the following assemblies:
2+ // * networking/dns-operator.adoc
3+
4+ :_mod-docs-content-type: PROCEDURE
5+ [id="nw-dns-viewlog_{context} "]
6+ = Viewing the CoreDNS logs
7+
8+ You can view CoreDNS logs by using the `oc logs` command.
9+
10+ .Procedure
11+
12+ * View the logs of a specific CoreDNS pod by entering the following command:
13+ +
14+ [source,terminal]
15+ ----
16+ $ oc -n openshift-dns logs -c dns <core_dns_pod_name>
17+ ----
18+
19+ * Follow the logs of all CoreDNS pods by entering the following command:
20+ +
21+ [source,terminal]
22+ ----
23+ $ oc -n openshift-dns logs -c dns -l dns.operator.openshift.io/daemonset-dns=default -f -- max-log-requests=<number> <1>
24+ ----
25+ <1> Specifies the number of DNS pods to stream logs from. The maximum is 6.
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ include::modules/nw-dns-operator-logs.adoc[leveloffset=+1]
2323
2424include::modules/nw-dns-loglevel.adoc[leveloffset=+1]
2525
26+ include::modules/nw-dns-viewlog.adoc[leveloffset=+1]
27+
2628include::modules/nw-dns-operatorloglevel.adoc[leveloffset=+1]
2729
2830include::modules/nw-dns-cache-tuning.adoc[leveloffset=+1]
You can’t perform that action at this time.
0 commit comments