360 Secure SkillHub
360 安全技能中心

troubleshooting-application-failures

该 Skill 通过发现和分析 CloudWatch 日志组来定位应用错误模式与堆栈信息,结合超时、限流、重试和权限配置进行根因分析,并输出按优先级排序的修复建议;同时提示无日志组、权限不足和查询超时的处理方式。

分类:开发
aws
热度 52.10
最近更新 2026-10-21 02:03:39

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add aws/agent-toolkit-for-aws/troubleshooting-application-failures
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
troubleshooting-application-failures
description
Troubleshoots failing applications by discovering and analyzing CloudWatch log groups to identify error patterns, root causes, and actionable solutions. Use when an application is experiencing failures and log-based diagnosis is needed.
version
2

Application Failure Troubleshooting

Overview

Domain expertise for diagnosing application failures through CloudWatch log analysis. Discovers relevant log groups, searches for error patterns and stack traces, performs root cause analysis, and generates prioritized remediation recommendations.

Logs are where the investigation starts, not its boundary. When the logs point at a timeout, throttle, retry or permission problem, read the configuration that sets it, for example the API Gateway integration timeout, the queue's visibility timeout, or the function timeout and event source mapping. Read-only access normally includes these Describe and Get calls.

Troubleshoot a failing application

To diagnose and resolve application failures using CloudWatch logs, follow the procedure exactly. See Application failure troubleshooting procedure.

Troubleshooting

No log groups found

Ask the user for specific log group names. Common patterns: /aws/lambda/function-name, /aws/apigateway/api-name, or custom application log groups.

Access denied errors

Verify AWS credentials have logs:DescribeLogGroups, logs:DescribeLogStreams, logs:StartQuery, and logs:GetQueryResults permissions.

Query timeouts

Reduce the time window or limit results. Large log groups may require multiple smaller queries.