v1
latestOpenAPI 3.1.02026-07-13897404.3 KBInstances
show logs
Request logs from a specific instance. The logs will be uploaded to S3 and can be retrieved from a generated URL. Supports both container logs and daemon system logs.
CLI Usage: vastai show logs <instance_id> [--tail <lines>] [--filter <grep>] [--daemon-logs]
put/api/v0/instances/request_logs/{id}
Path parameters
idinteger required
ID of the instance to get logs from
Request body
Example request
{
"tail": "1000"
}Response
Success response with S3 URL for log retrieval
Example response
{
"success": true,
"result_url": "https://s3.amazonaws.com/vast.ai/instance_logs/{hash}.log"
}