Review sandbox activity
Read system and application logs
Use system logs to investigate startup or an unresponsive environment:result.stdout and result.stderr; for
a background application, redirect its output to a file and read that file with
sandbox.files.read().
You can read system logs while a sandbox is paused or sleeping without waking it.
Archived sandboxes do not have live system logs. Each call reads up to 256 KiB.
Inspect resource use
Get recent CPU, memory, and network samples:start and end as RFC3339 timestamps. A point with measured=false means a
measurement is missing; it does not mean resource use was zero.
History and events remain queryable after deletion within their retention periods.
Keep an existing sandbox handle to query them after deleting it, or use the
HTTP history endpoint with the saved ID.
Fetching a deleted sandbox with box.sandboxes.get() returns NotFoundError.