v1

latestOpenAPI 3.1.02026-07-13897404.3 KB
Instances

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

tailstring

Number of lines to show from end of logs

filterstring

Grep filter to apply to log entries

daemon_logs'true'

If "true", fetch daemon system logs instead of container logs

Example request

{
  "tail": "1000"
}

Response

Success response with S3 URL for log retrieval

successboolean
result_urlstring

S3 URL where logs can be downloaded

msgstring

Status message

Example response

{
  "success": true,
  "result_url": "https://s3.amazonaws.com/vast.ai/instance_logs/{hash}.log"
}