Read container logs
container_logsFetch recent log lines from a container's stdout/stderr to diagnose crashes, monitor startup, or verify deployments. Optionally filter by a time window.
Instructions
Fetch the most recent log lines from a container's stdout/stderr. Use this to diagnose crashes, watch startup output or confirm a deployment. Supports an optional time window via since.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | Number of trailing lines to return (default from server config). | |
| since | No | Only return logs newer than this. Accepts a Unix timestamp (seconds) or a relative value like '10m' or '2h'. | |
| container | Yes | Container name, short id or full id. | |
| timestamps | No | Prefix each line with its timestamp (default: false). |