k8s_get_pod_logs
Retrieve container logs from Kubernetes pods to monitor application behavior, troubleshoot issues, and analyze performance. Specify pod name, namespace, container, and time range for targeted log extraction.
Instructions
Get logs from a pod container
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Pod name | |
| namespace | No | Namespace | |
| container | No | Container name (if pod has multiple containers) | |
| tail | No | Number of lines to show from end of logs | |
| previous | No | Get logs from previous instance of container | |
| since | No | Only return logs newer than a relative duration (e.g., 5m, 1h) |