tail_container_logs
Retrieve the tail end of logs from a Docker container on one or multiple remote hosts concurrently, with options for line count and timestamps.
Instructions
Fetch the last N lines of logs from a remote Docker container on a single host ('host') or multiple hosts concurrently ('hosts'). If using 'hosts', returns a JSON map mapping hostnames to their success status and container log output. Prefer 'hosts' to query container logs across multiple machines simultaneously.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | The target hostname or IP address | |
| hosts | No | A list of hostname targets to query concurrently | |
| lines | No | Number of lines to read from the end (default: 100) | |
| container | Yes | The Docker container name or ID | |
| timestamps | No | If true, includes timestamps in output (default: false) |