Get Pod Logs
get_pod_logsFetch logs from Kubernetes pods by specifying name, namespace, container, and line count. Supports multi-container pods and previous instance logs.
Instructions
Fetch logs for a specific pod/container.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Pod name | |
| previous | No | Fetch logs from the previous container instance | |
| container | No | Container name (optional, required for multi-container pods) | |
| namespace | No | Namespace (default: 'default') | default |
| tail_lines | No | Number of lines from the end (default: 100) |