docker_logs
Fetch recent stdout/stderr log lines from a Docker container on a specified host, with optional tail limit, for safe infrastructure troubleshooting.
Instructions
Fetch the most recent combined stdout/stderr log lines from a container on a Docker host.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | number of most recent log lines to return (default 100) | |
| server | Yes | the inventory server name to check | |
| container | Yes | container name or ID to fetch logs for |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logs | Yes | ||
| server | Yes | ||
| container | Yes | ||
| timestamp | Yes | ||
| line_count | Yes |