// 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:
+
[options="nowrap",subs="attributes"]
----
{cmdcli} get pods -l name=broker -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_
----

