# View Workload logs

> View Workload logs - Use the Logs tab to view, filter, search, and copy container logs
> (stdout/stderr and optional OTel log records) for the Workload.

This Markdown file sits beside the HTML page at the same path (with a `.md` suffix). It summarizes the topic and lists links for tools and LLM context.

Companion generated at `2026-06-22T16:50:38.249028+00:00` (UTC).

## Primary page

- [View Workload logs](https://docs.datarobot.com/en/docs/workload-api/monitor-workloads/activity-logs-ui/logs.html.md): Full documentation for this topic (Markdown sidecar).

## Related documentation

- [Workload API](https://docs.datarobot.com/en/docs/workload-api/index.html.md): Linked from this page.
- [Monitor telemetry and health](https://docs.datarobot.com/en/docs/workload-api/monitor-workloads/index.html.md): Linked from this page.
- [View deployed Workload activity](https://docs.datarobot.com/en/docs/workload-api/monitor-workloads/activity-logs-ui/index.html.md): Linked from this page.
- [Monitoring > OTel tracing](https://docs.datarobot.com/en/docs/api/reference/sdk/data-exploration.html.md): Linked from this page.
- [Instrument a Workload with OpenTelemetry](https://docs.datarobot.com/en/docs/workload-api/operate-workloads/endpoints-ui/instrumentation.html.md): Linked from this page.
- [REST: Monitor Workloads](https://docs.datarobot.com/en/docs/workload-api/monitor-workloads/monitoring-rest-endpoints.html.md): Linked from this page.

## Documentation content

A Workload's Logs tab receives container output in real time.Container `stdout` and `stderr` are captured automatically at every lifecycle stage —startup, running, and errored—including plain `print()` output, subprocess output, and logs from containers that haven't been instrumented with the OpenTelemetry (OTel) SDK. Startup failures and crash-loop diagnostics flow into the same log stream as runtime output, so you can inspect crash causes alongside healthy-state output in one place. Logs persist after a Workload is stopped or deleted, and are segmented per replica and per container. Additionally, you can filter and view span-specific logs on the [Monitoring > OTel tracing](https://docs.datarobot.com/en/docs/api/reference/sdk/data-exploration.html.md) tab.

> [!TIP] Explicit OTel instrumentation is optional
> Automatic `stdout` / `stderr` capture means you don't need the OTel SDK to view stdout/stderr logs in this tab. Add explicit instrumentation only when you want structured, attribute-rich log records alongside automatic capture—see [Instrument a Workload with OpenTelemetry](https://docs.datarobot.com/en/docs/workload-api/operate-workloads/endpoints-ui/instrumentation.html.md).

The collected logs provide time-period filtering capabilities, and the OTel logs API is available to programmatically export logs with similar filtering capabilities.OTel-instrumented logs are standardized for export to third-party observability tools like Datadog. Plain stdout capture appears in this tab but is not OTLP-exported unless you add the logging handler described in [Instrument a Workload with OpenTelemetry](https://docs.datarobot.com/en/docs/workload-api/operate-workloads/endpoints-ui/instrumentation.html.md).

> [!NOTE] Retention
> Log retention depends on the artifact lifecycle status: 24 hours for Workloads backed by `draft` artifacts and 30 days for Workloads backed by `locked` artifacts. After retention elapses, log data is automatically deleted.

To access the logs for a Workload, on the Deployed Workloads tab, locate and click the Workload, click the Activity log tab, and then click Logs. The logging levels available are `INFO`, `DEBUG`, `WARN`, `CRITICAL`, and `ERROR`.

| Control | Description |
| --- | --- |
| Range UTC | Select the logging date range Last 15 min, Last hour, Last day, or Custom range. |
| Level | Select the logging level to view: Debug, Info, Warning, Error, or Critical. |
| Artifacts | Filter logs by artifact version. Select a specific artifact to narrow log output to that deployment. |
| Replicas | Filter logs by replica. Select a specific replica to isolate output from a single pod instance. |
| Refresh | Refresh the contents of the Logs tab to load new logs. |
| Copy logs | Copy the contents of the current Logs tab view. |
| Search | Search the text contents of the Logs tab. |

For the Workload API monitoring surfaces (statistics, events, history), see [REST: Monitor Workloads](https://docs.datarobot.com/en/docs/workload-api/monitor-workloads/monitoring-rest-endpoints.html.md).
