Obtaining container logs on IncusOS

On IncusOS, how do we access the full content of container logs?

Running incus info <instance> --show-log only shows the last few lines.

Hmm, that does get you the full file, we don’t truncate things in the log API.

You can list the available log files with:

incus query /1.0/instances/NAME/logs

Ohhh… so that’s not it then. For OCI images which output to the console, can this log be seen by incus?

incus console --show-log is what you’d want for that one.
This one will be partial as it’s an in-memory ring buffer to avoid a container being able to fill the disk by writting through its console.

Ohh nice. Thanks a lot!