View Workload logs¶
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 tab.
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.
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.
Retention
保持期間は、システム管理者が組織レベルで設定し、その組織内のすべてのユーザーに適用されます。 ポリシーが明示的に設定されていない場合、トライアル版利用の組織には14日間のポリシーが、有料版利用の組織には30日間のポリシーが適用されます。 管理者は、シグナルタイプ(トレース、ログ、メトリクス)ごとに、保持期間を14、30、60、90、180、または360日に設定できます。
組織の保持期間設定を確認または変更するには、OTelの保持期間の設定を参照してください。
After the retention window elapses, log data is automatically deleted. Retention applies the same way to Workloads backed by draft and locked artifacts—see Monitoring concepts: Retention summary.
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.
| コントロール | 説明 |
|---|---|
| 範囲(UTC) | ログの日付範囲(直近15分、直近1時間、直近1日、またはカスタム範囲)を選択します。 |
| レベル | 表示するログレベル(デバッグ、情報、警告、エラー、または重要)を選択します。 |
| アーティファクト | Filter logs by artifact version. Select a specific artifact to narrow log output to that deployment. |
| レプリカ | Filter logs by replica. Select a specific replica to isolate output from a single pod instance. |
| 表示を更新 | Refresh the contents of the Logs tab to load new logs. |
| ログをコピー | Copy the contents of the current Logs tab view. |
| 検索 | 指定されたテキストを含むログ行を抽出します。 複数の用語を追加すると、それらすべてが含まれている行のみが表示されます。 |
| 除外する | 指定されたテキストを含むログ行を除外します。 複数の用語を追加すると、いずれかに一致する行はすべて除外されます。 |
For the Workload API monitoring surfaces (statistics, events, history), see REST: Monitor Workloads.
