portainer_container_logs
Retrieve logs from a Docker container by specifying its ID or name, with optional tail and endpoint parameters for filtered output.
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 |