# How to redirect dashboard logs to uart

**URL:** <https://forums.balena.io/t/how-to-redirect-dashboard-logs-to-uart/352831>\
**Category:** balenaOS\
**Tags:** support, raspberrypi3, docker\
**Created:** [February 21, 2022, 4:21pm UTC](https://forums.balena.io/t/how-to-redirect-dashboard-logs-to-uart/352831 "2022-02-21T16:21:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdcraver](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mdcraver](https://forums.balena.io/u/mdcraver)\
**Post date:** [February 21, 2022, 4:21pm UTC](https://forums.balena.io/t/how-to-redirect-dashboard-logs-to-uart/352831/1 "2022-02-21T16:21:52Z")

</div>

I have a multi-container project, running on a Raspberry Pi 3 B+, that is experiencing sporadic reboots, so I want to redirect the Balena dashboard container logs to UART0, so I can capture the logs to my computer via a USB-Serial adapter.

I have connected the TX/RX pairs of the USB-Serial to the UART0\_RXD and UART0\_TXD respectively and enabled UART in the Device configuration.

I am using the production version of “balenaOS 2.83.21+rev1” with supervisor version “12.10.3”

How do I go about redirecting the Balena dashboard logs to the Raspberry Pi 3 UART0?

---

<div class="post-metadata">

**Author:** ![dtischler](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dtischler/32/2483_2.png) [@dtischler](https://forums.balena.io/u/dtischler)\
**Post date:** [February 22, 2022, 6:26pm UTC](https://forums.balena.io/t/how-to-redirect-dashboard-logs-to-uart/352831/2 "2022-02-22T18:26:04Z")

</div>

Hi @mdcraver Production versions of the operating system have the serial UART disabled for security purposes, so you’d have to use a Development version of the OS if you want a console on the GPIO. You’ll also need to set a device tree overlay as documented here: [I2C and Other Interfaces - Balena Documentation](https://www.balena.io/docs/learn/develop/hardware/i2c-and-spi/#using-uart-or-serial-on-raspberry-pi-3)

Thanks!

---

<div class="post-metadata">

**Author:** ![mdcraver](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mdcraver](https://forums.balena.io/u/mdcraver)\
**Post date:** [February 22, 2022, 8:10pm UTC](https://forums.balena.io/t/how-to-redirect-dashboard-logs-to-uart/352831/4 "2022-02-22T20:10:58Z")

</div>

So does the “Enable / Disable UART” device configuration not work with production versions?

 ![Screen Shot 2022-02-22 at 3.09.36 PM](https://global.discourse-cdn.com/balena/original/2X/2/203dafd2729556fe18e39424ad735af78e533729.png)

---

<div class="post-metadata">

**Author:** ![dtischler](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dtischler/32/2483_2.png) [@dtischler](https://forums.balena.io/u/dtischler)\
**Post date:** [February 23, 2022, 1:55am UTC](https://forums.balena.io/t/how-to-redirect-dashboard-logs-to-uart/352831/5 "2022-02-23T01:55:33Z")

</div>

Hi @mdcraver, that will not be enough to get a serial console output over GPIO, no. You’ll actually need to perform this step when using a Production image: [Enable the serial console on a production device - #3 by \_Page](https://forums.balena.io/t/enable-the-serial-console-on-a-production-device/31794/3)

Hope that helps!

---

<div class="post-metadata">

**Author:** ![mdcraver](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mdcraver](https://forums.balena.io/u/mdcraver)\
**Post date:** [February 23, 2022, 4:37pm UTC](https://forums.balena.io/t/how-to-redirect-dashboard-logs-to-uart/352831/6 "2022-02-23T16:37:39Z")

</div>

So now I am using the **development** version of “balenaOS 2.83.21+rev1” with supervisor version “12.10.3”.

I see the initial linux boot messages correctly.

How can I get the messages from my containers, that currently show up in the logs section of the Balena dashboard, be redirected to the UART?
