跳到正文
Skillpedia
部署与云(DevOps)6.2k · #14385

log-parser

它能做什么

这项技能读取应用日志文件,提取其中的错误和警告,并附上时间戳。适合调查崩溃或请求变慢问题的开发者和支持团队。

适用场景

  • ✓当你的应用在崩溃,需要在日志中查找错误时。
  • ✓当你想扫描日志文件中的警告或异常时。
  • ✓当你在调查服务器日志中请求变慢的问题的时候。

技能链接

https://github.com/agentscope-ai/agentscope-java/blob/main/agentscope-core/src/test/resources/e2e-skills/log-parser/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/agentscope-ai/agentscope-java/blob/main/agentscope-core/src/test/resources/e2e-skills/log-parser/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我的应用一直在崩溃。请扫描 app.log 中的所有错误和警告,并附上时间戳,然后告诉我最常见的是哪一个。”

每周 5 个新技能,1 分钟读完。

工作原理

这项技能对日志文件运行附带的脚本。脚本会找出 ERROR 和 WARN 行,记录它们的时间戳,并保存一份你可以查看的结构化摘要。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Log Parser Skill

Parses application log files to extract errors, warnings, and patterns.

Available Scripts

  • scripts/extract_errors.py — Scan a log file and extract all ERROR/WARN lines with timestamps into a structured summary

Usage

python3 scripts/extract_errors.py --input app.log --output errors.json
python3 scripts/extract_errors.py --input app.log --level ERROR
常见问题

它查找什么?

它提取带有时间戳的 ERROR 和 WARN 行。

我可以按级别筛选吗?

可以。你可以只筛选某个特定级别,例如只看 ERROR。

它会修改日志文件吗?

不会。它只读取文件,并另外写出一份摘要。

详情

作者的原始描述

Use this skill when the task involves inspecting, searching, or extracting information from application log files. Suitable for tasks like "my application is crashing and I need to find the errors", "scan these logs for warnings", "extract all exceptions from this log file", or "find slow requests in my server logs". Triggered by debugging, incident investigation, or log analysis needs.

repo: agentscope-ai/agentscope-java

热度

GitHub 星标
6.2k
排名
#14385
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能