---
title: "Read the latest committed stdout/stderr snapshot"
method: GET
path: "/v1/workloads/{id}/logs"
tags: ["Workloads"]
---

# Read the latest committed stdout/stderr snapshot

`GET /v1/workloads/{id}/logs`

## Request

- Base URL: `/` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/v1/workloads/{id}/logs`
- Auth: HTTP bearer

Returns a committed log artifact when available. If no artifact matches, returns the latest matching retained live snapshot within 24 hours after termination, limited to 8 MiB per attempt. This is a snapshot, not a live stream. Returns 404 when neither exists. X-Nodus-Stage-Id and X-Nodus-Generation identify the returned attempt. A member_id selects the retained distributed member snapshot and honors stage and generation filters. Distributed logs remain available during cleanup and expire 24 hours after workload termination once the group is closed.

## Path parameters

- `id` string, required

## Query parameters

- `stage` string
- `generation` integer
- `member_id` string

## Response `200`

Success

## Other responses

- `default`: Error. The JSON error and message fields are stable. Additional fields may provide details. Authentication, rate limits, and transient failures apply to all operations.

## Changes

- **2026-10-01** `9fb5c223db3e`: 1 info
  - added the new optional `query` request parameter `member_id`

[Operation history](https://skmtc.dev/nodus-compute/apis/nodus-infrastructure-execution-api/changes/v1/workloads/:id/logs/get.md)

---

[API](https://skmtc.dev/nodus-compute/apis/nodus-infrastructure-execution-api.md) - [All operations](https://skmtc.dev/nodus-compute/apis/nodus-infrastructure-execution-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nodus-compute/apis/nodus-infrastructure-execution-api/revisions/a59210899d95?raw)
