get_container_logs
Retrieve container logs from Portainer by environment and container ID, with optional tail limit and timestamps.
Instructions
Get logs from a container
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | Number of lines from the end (default: 100) | |
| timestamps | No | Include timestamps | |
| containerId | Yes | Container ID or name | |
| environmentId | Yes | Portainer environment ID |