get_pod_logs
Tail logs from a specified pod in a managed cluster, with optional container and line count, and automatic fallback to previous container if the current one is crashing.
Instructions
Tail logs from a pod on a managed cluster.
Args: cluster: managed cluster name. namespace: pod namespace. pod: pod name. container: container name; empty picks the default container. lines: number of trailing log lines (default 80).
Falls back to the previous container instance if the current one is crashing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pod | Yes | ||
| lines | No | ||
| cluster | Yes | ||
| container | No | ||
| namespace | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |