smart_summarize_pod_logs
Analyze Kubernetes pod logs to identify errors, warnings, and performance patterns with adaptive time window selection and multi-pass processing.
Instructions
Adaptive pod log analysis with automatic volume management and multi-pass processing.
When no time constraints specified, automatically estimates volume and selects optimal time windows.
Args:
namespace: Kubernetes namespace.
pod_name: Pod name to analyze.
container_name: Specific container (if multiple).
summary_level: "brief", "detailed", or "comprehensive" (default: "detailed").
focus_areas: Analysis focus (default: ["errors", "warnings", "performance"]).
time_segments: Time-based segments to analyze (default: 5).
max_context_tokens: Max tokens for analysis (default: 10000).
since_seconds: Only if user specifies exact seconds.
tail_lines: Only if user specifies exact line count.
time_period: Only if user specifies period (e.g., "1h", "30m").
start_time: Only if user specifies exact start time.
end_time: Only if user specifies exact end time.
Returns:
Dict[str, Any]: Log analysis with insights, patterns, and recommendations.Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| namespace | Yes | ||
| pod_name | Yes | ||
| container_name | No | ||
| summary_level | No | detailed | |
| focus_areas | No | ||
| time_segments | No | ||
| max_context_tokens | No | ||
| since_seconds | No | ||
| tail_lines | No | ||
| time_period | No | ||
| start_time | No | ||
| end_time | No |