get_pod_logs
Fetch recent logs from a pod to investigate failures, optionally from a specific container or from the last crashed instance after CrashLoopBackOff.
Instructions
Fetch recent logs for a pod (optionally a specific container). Set previous=True to get the logs of the last crashed instance of the container, which is usually what you want after a CrashLoopBackOff.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pod | Yes | ||
| previous | No | ||
| container | No | ||
| namespace | No | default | |
| tail_lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |