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

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

For the `standard` address space type, you can view the router logs to troubleshoot issues with clients not connecting or issues with sending and receiving messages.

.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
----

