get_pod_logs
Retrieve OpenShift pod logs with configurable container targeting, line limits, time windows, timestamps, and previous instance views.
Instructions
Get logs from a Pod.
Options:
container: target a specific container in a multi-container pod
tail_lines: number of lines from the end (default 100)
since_seconds: only return logs from the last N seconds
timestamps: prepend RFC3339 timestamp to each log line
previous: get logs from the previous terminated instance
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| previous | No | ||
| container | No | ||
| namespace | No | default | |
| tail_lines | No | ||
| timestamps | No | ||
| cluster_alias | No | ||
| since_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |