get_pipelinerun_logs
Fetch and analyze logs from Tekton PipelineRun pods in Kubernetes, prioritizing failed pods and managing output size automatically for troubleshooting.
Instructions
Fetch logs from all pods in a Tekton PipelineRun with adaptive volume management.
Prioritizes failed pods and manages token budgets automatically when no time/line filters specified.
Args:
pipelinerun_name: PipelineRun name.
namespace: Kubernetes namespace.
clean_logs: Clean and format logs (default: True).
tail_lines: Lines from end (optional).
since_seconds: Logs newer than N seconds (optional).
since_time: Logs newer than RFC3339 timestamp (optional).
timestamps: Include timestamps (default: True).
previous: Get logs from previous container instance (default: False).
max_token_budget: Maximum tokens for output (default: 120000). Applies to both adaptive and manual modes.
Returns:
Dict[str, Any]: Pod names as keys, logs as values. Includes "_metadata" with processing info.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pipelinerun_name | Yes | ||
| namespace | Yes | ||
| clean_logs | No | ||
| tail_lines | No | ||
| since_seconds | No | ||
| since_time | No | ||
| timestamps | No | ||
| previous | No | ||
| max_token_budget | No |