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

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

.Procedure

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

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

