portainer_container_logs
Retrieve container logs for troubleshooting. Specify container ID, number of tail lines (default 100, max 1000), and optional endpoint.
Instructions
Get container logs.
Args: container_id: Container ID or name tail: Number of lines from the end of the logs (default 100, max 1000) endpoint_id: Target endpoint ID (uses default if omitted)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| container_id | Yes | ||
| tail | No | ||
| endpoint_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |