portainer_service_logs
Retrieves logs from a Docker Swarm service across all tasks and nodes. Specify the service ID or name, and optionally filter by recent lines, time window, or add timestamps.
Instructions
Get logs of a Swarm service (all its tasks, across nodes).
Args: service_id: Service ID or name tail: Number of lines from the end of the logs (default 100, max 1000) since: Only lines newer than this: a duration ("10m", "2h", "1d"), a Unix timestamp or an ISO-8601 datetime timestamps: Prefix every line with its timestamp (default false) endpoint_id: Target endpoint ID (uses default if omitted)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | ||
| since | No | ||
| service_id | Yes | ||
| timestamps | No | ||
| endpoint_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |