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.Input Schema
TableJSON 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 |