# Getting wireless logs from within a container

**URL:** <https://forums.balena.io/t/getting-wireless-logs-from-within-a-container/310625>\
**Category:** balenaOS\
**Tags:** raspberrypi4\
**Created:** [May 7, 2021, 10:47pm UTC](https://forums.balena.io/t/getting-wireless-logs-from-within-a-container/310625 "2021-05-07T22:47:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![n42](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/n42/32/5009_2.png) [@n42](https://forums.balena.io/u/n42)\
**Post date:** [May 7, 2021, 10:47pm UTC](https://forums.balena.io/t/getting-wireless-logs-from-within-a-container/310625/1 "2021-05-07T22:47:04Z")

</div>

Hi,

Is there a way to get wireless debug logs from within a container?

Namely, we’re looking to to access logs regarding wifi connectivity in terms of a device trying to connect to AP and the error it might be getting (ie, wpa supplicant logs, etc). The use case it to provide a user more details on a display as well as log it and send it to our own servers once the device is online (e.g., on a different wifi).

Also - is there a way to get the “Host OS” logs (e.g., network manager, dmesg) from within a container?

Thank you 😉

---

<div class="post-metadata">

**Author:** ![n42](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/n42/32/5009_2.png) [@n42](https://forums.balena.io/u/n42)\
**Post date:** [May 10, 2021, 3:53pm UTC](https://forums.balena.io/t/getting-wireless-logs-from-within-a-container/310625/3 "2021-05-10T15:53:17Z")

</div>

Hi,

Balena team - any help on this would be very much appreciated?

Thank you.

---

<div class="post-metadata">

**Author:** ![gelbal](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/gelbal/32/1109_2.png) [@gelbal](https://forums.balena.io/u/gelbal)\
**Post date:** [May 10, 2021, 4:02pm UTC](https://forums.balena.io/t/getting-wireless-logs-from-within-a-container/310625/5 "2021-05-10T16:02:53Z")

</div>

Hello there,

Sounds like you are looking for a way to read `journal` logs from the balenaOS. It’s certainly possible. Please see our documentation about it:

> **[Interacting with the balena Supervisor - Balena Documentation](https://www.balena.io/docs/reference/supervisor/supervisor-api/#journald-logs)**

> **[balena-io-examples/device-cloud-logging](https://github.com/balena-io-examples/device-cloud-logging)**
>
> An example of using the journald log streaming endpoint on balena-supervisor

You need to enable the supervisor API in the container first as shown in the example project. By specifying the `unit` you are able to limit reading the logs from a particular component.

Let us know if these help or not, and how it goes with your project.  
Cheers…

---

<div class="post-metadata">

**Author:** ![n42](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/n42/32/5009_2.png) [@n42](https://forums.balena.io/u/n42)\
**Post date:** [May 10, 2021, 8:01pm UTC](https://forums.balena.io/t/getting-wireless-logs-from-within-a-container/310625/7 "2021-05-10T20:01:28Z")

</div>

Thank you!  
This is very helpful.
