// Module included in the following assemblies:
//
// assembly-monitoring-oc.adoc
// assembly-monitoring-kube.adoc

[id='get-logs-broker-{context}']
= Viewing router logs

.Procedure

. List all router pods and choose the pod for the relevant address space:
+
[options="nowrap",subs="+quotes,attributes"]
----
{cmdcli} get pods -l name=qdrouterd -o go-template --template '{{range .items}}{{.metadata.name}}{{"\t"}}{{.metadata.annotations.addressSpace}}{{"\n"}}{{end}}'
----

. Display the logs for the pod:
+
[options="nowrap",subs="+quotes,attributes"]
----
{cmdcli} logs _pod_ -c router
----

