Better way to view container logs?

Hi @jgentes,

If you are just casually viewing the logs of application containers, you should be able to use the Logs modal on the dashboard. You can additionally filter those logs by message, service, system message, or timestamp.

If you are trying to develop more effectively, you should be able to view logs directly as you build & push code if you use the live push feature. One of our engineers recently wrote a great description of live push and all it’s use cases, you can read more here: https://www.balena.io/blog/living-on-the-edge-with-livepush-and-other-cli-improvements/. There is further documentation here as well: https://www.balena.io/docs/reference/cli/#push-applicationordevice.

Furthermore, if you’d like to tail those logs in your terminal and the container names are predictable, perhaps you could use standard SSH & a tunnel to access them directly (and programmatically). More has been written about tunneling here: Rsync over balena ssh tunnel?.

If you are doing something more with the logs, could you describe a little more about what you are trying to do?