Skip to content

Commit 153c97a

Browse files
authored
Merge pull request #92973 from jmanthei/OCPBUGS-292975-try4
OCPBUGS-29275 for a fourth try
2 parents c5f15d1 + 06656d5 commit 153c97a

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

modules/nw-dns-viewlog.adoc

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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.

networking/networking_operators/dns-operator.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ include::modules/nw-dns-operator-logs.adoc[leveloffset=+1]
2323

2424
include::modules/nw-dns-loglevel.adoc[leveloffset=+1]
2525

26+
include::modules/nw-dns-viewlog.adoc[leveloffset=+1]
27+
2628
include::modules/nw-dns-operatorloglevel.adoc[leveloffset=+1]
2729

2830
include::modules/nw-dns-cache-tuning.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)