Skip to main content

check-logs

Use when the user asks to check, view, or search Kumo application logs from a supplied file or a selected Kubernetes deployment.

来源信息

仓库
NVIDIA/kumo-engine
最近来源活动
2026年10月9日 00:32
检测到的 SKILL.md 语言
英语
星标
3
Forks
2

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
check-logs
description
Use when the user asks to check, view, or search Kumo application logs from a supplied file or a selected Kubernetes deployment.
# Check Logs ## When to Use Use this skill when the user: - Asks to "check logs", "view logs", or "get logs" - Needs to investigate errors for a specific tenant - Wants to search for patterns in application logs ## Arguments - `logs_file`: Supplied local log file, when available - `context`, `namespace`: Explicit Kubernetes target when collecting logs - `selector` or `pod`: Workload label selector or pod name - `pattern` (optional): Case-insensitive regular expression to filter logs - `since` (optional, default: "30m"): Time range (e.g., 5m, 30m, 1h) --- ## Step 1: Select the Log Source Use the supplied log file, or the deployment the user has authorized for this investigation. For Kubernetes collection, require `kubectl`, configured cluster access, and the context, namespace, and workload. Reuse target details and permission already provided for this task; ask only for missing information. Do not derive a namespace from a tenant name or use an implicit current context. The application chart uses labels such as `app=mlworkflow`, `app=databackend`, and `app=kumo-rest`. Select the workload relevant to the investigation; the namespace is chosen at installation. See [the Helm guide](../../../helm/README.md). --- ## Step 2: Read or Collect Logs For a supplied file, read it directly. Apply a filter when requested: ```bash rg -i -- "{pattern}" "{logs_file}" ``` For a selected Kubernetes workload: ```bash kubectl --context="{context}" logs -n "{namespace}" \ -l "{selector}" --all-containers=true \ --since="{since}" --tail=500 --timestamps=true --prefix=true ``` For a specific pod, replace `-l "{selector}"` with `"pod/{pod}"`. Filter the collected output only when a pattern was supplied. Keep retrieval errors visible: an access error, an empty workload selection, and no matching log entries are different outcomes. These commands collect bounded recent logs; report that limit when drawing conclusions. --- ## Step 3: Analyze Results Look for: - **Error patterns**: Stack traces, exceptions - **Timing**: When errors started - **Frequency**: One-time vs recurring - **Correlation**: Related events at same timestamp Common patterns: - `Exception`, `Error`, `Failed` - `timeout`, `deadline exceeded` - `connection refused`, `unavailable` - `permission denied`, `unauthorized` - `OOM`, `out of memory` --- ## Step 4: Report ``` ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ LOG ANALYSIS ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Source: {logs_file or context / namespace / workload} Time range: Last {since} Pattern: {pattern} Findings: {summary} Key Log Entries: {excerpts with timestamps} Recommendations: {next steps} ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ```
在 GitHub 查看