amitkarpe/agent-skills/awslogs-investigation
Claude Code and agent skill by amitkarpe/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Investigate ECS Docker awslogs failures on EC2-backed nodes by checking Docker journal errors, container placement, and node-level patterns. Use when CloudWatch Logs are missing for ECS tasks, awslogs stream creation fails, or some nodes appear clean while others do not.
Install
npx vskill@latest install amitkarpe/agent-skills/awslogs-investigationSKILL.md
The same SKILL.md was published earlier as amitkarpe/agent-skills/awslogs-investigation.
AWSLogs Investigation
Use this skill for Docker awslogs failures on EC2-backed ECS nodes.
Use when
- ECS tasks are not sending recent logs to CloudWatch
- Docker journal shows
awslogsfailures - some nodes have logs and others do not
- you need a node-by-node matrix of failing versus clean ECS hosts
Do not use when
- the environment uses Fargate only
- tasks use a different log driver
- you only need generic CloudWatch Logs querying
Main scripts
Check one or more nodes for awslogs failures
This checks Docker journal lines for:
awslogsfailed to create Cloudwatch log streamfailed to refresh cached credentialsfailed to load credentialsretry quota exceeded
If errors are present, treat the node as suspect.
Build a node matrix for an ECS cluster
This script:
- lists active ECS container instances
- maps them to EC2 IDs
- runs the journal probe per node via SSM
- saves raw outputs to a durable temp path
If output_dir is not provided, it writes to:
Investigation rules
- keep this skill read-only
- do not restart Docker from this skill
- treat fresh clean nodes versus older loaded nodes as an important signal
- do not assume a Docker restart is a durable fix for this failure mode
- confirm whether the failure is:
- cluster-wide
- limited to older nodes
- limited to nodes with heavier task density
Recommended workflow
- confirm tasks use Docker
awslogs, not CloudWatch Agent - check one known failing node
- compare it to one known clean node
- if the pattern is real, build a cluster-wide node matrix
- hand off to
ecs-recoveryonly after the failing-node set is clear
Known reference
- read
references/DOCKER_AWSLOGS_CREDENTIAL_FAILURE.mdfor the known failure pattern and why drain/replacement is safer than assuming restart fixes it
Evidence
Keep evidence outside the repo in:
Related skills
- use
ecs-monitoringfor read-only service/task stability checks - use
ecs-recoveryonly after the failing-node set is known
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/awslogs-investigation/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/amitkarpe/agent-skills/awslogs-investigation)