get_etcd_logs
Retrieve etcd pod logs from Kubernetes/OpenShift clusters with time-based filtering, line limits, and real-time streaming capabilities for troubleshooting.
Instructions
Retrieve etcd pod logs from Kubernetes/OpenShift with flexible time and line filtering.
Auto-detects cluster type and uses appropriate namespace/label selectors.
Args:
tail_lines: Lines from end of logs (default: 200, None for all).
since_seconds: Logs newer than N seconds (overrides tail_lines).
since_time: Logs newer than RFC3339 timestamp (overrides since_seconds).
until_time: Logs older than RFC3339 timestamp (requires since_time or since_seconds).
follow: Stream logs in real-time (default: False).
timestamps: Include timestamps (default: True).
previous: Get logs from previous container instance (default: False).
clean_logs: Clean/format logs (default: True).
Returns:
Dict[str, str]: Pod names as keys, logs as values.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_etcd_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail_lines | No | ||
| since_seconds | No | ||
| since_time | No | ||
| until_time | No | ||
| follow | No | ||
| timestamps | No | ||
| previous | No | ||
| clean_logs | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |