logs
22
总安装量
2
周安装量
#16626
全站排名
安装命令
npx skills add https://github.com/forever-efficient/pitfal-solutions-website --skill logs
Agent 安装分布
mcpjam
2
qwen-code
2
windsurf
2
crush
2
claude-code
2
Skill 文档
View CloudWatch Logs
Fetch and display recent logs from AWS CloudWatch.
Arguments
$ARGUMENTS– Optional: function name (contact, booking, proofing, orders)
Default: All Functions
Show recent logs from all Lambda functions:
for func in contact booking proofing orders; do
echo "=== pitfal-${func} ==="
aws logs tail /aws/lambda/pitfal-${func} \
--since 1h \
--profile pitfal \
--format short 2>/dev/null || echo "No logs found"
echo ""
done
Specific Function
If $ARGUMENTS is provided (e.g., /logs contact):
aws logs tail /aws/lambda/pitfal-$ARGUMENTS \
--follow \
--profile pitfal \
--format short
Error Filtering
Show only errors from the last hour:
aws logs filter-log-events \
--log-group-name /aws/lambda/pitfal-${ARGUMENTS:-contact} \
--filter-pattern "ERROR" \
--start-time $(( $(date +%s) - 3600 ))000 \
--profile pitfal
API Gateway Logs
aws logs tail /aws/api-gateway/pitfal-api \
--since 1h \
--profile pitfal \
--format short
Output Format
Display logs with:
- Timestamp
- Log level (INFO/WARN/ERROR)
- Message content
- Request ID (if available)