How to get/pull/download all container logs that are stored/persisted (Dashboard logs aren’t enough )?
Hi, are you referring to persistent logging? If so, logs are located at /var/log/journal/<uuid>
where <uuid>
matches the contents of /etc/machine-id
and is not related with the balena device UUID (quoted from the docs ). See: Device Logs - Balena Documentation
Further below in that doc, you can see how to set up long-term device log storage if necessary (see: Device Logs - Balena Documentation )
I want to ask on top of this, I am looking for an all logs from one of the container using supervise API or any IP, can you suggest?
Hi there, the easiest ways to get logs from a container in my opinion is to use either:
- the balena CLI: balena CLI Documentation - Balena Documentation
- the balena node sdk: Balena Node.js SDK - Balena Documentation
- the balena python sdk: Balena Python SDK - Balena Documentation