From localstack
Analyze LocalStack logs to debug AWS API errors, troubleshoot Lambda functions, and view request/response cycles. Useful for enabling debug mode and filtering logs by service.
How this skill is triggered — by the user, by Claude, or both
Slash command
/localstack:logs-analysisThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Analyze LocalStack logs to debug issues, identify errors, and understand AWS API interactions.
Analyze LocalStack logs to debug issues, identify errors, and understand AWS API interactions.
# Follow logs in real-time
localstack logs -f
# View last N lines
localstack logs --tail 100
# Via Docker
docker logs localstack-main -f
docker logs localstack-main --tail 200
# Filter by service
localstack logs | grep -i s3
localstack logs | grep -i lambda
localstack logs | grep -i dynamodb
# Filter errors only
localstack logs | grep -i error
localstack logs | grep -i exception
# Filter by request ID
localstack logs | grep "request-id-here"
Enable detailed logging:
# Start with debug mode
DEBUG=1 localstack start -d
# Enable specific debug flags
LS_LOG=trace localstack start -d
LocalStack logs include AWS API requests. Look for patterns like:
AWS <service>.<operation> => <status>
Example log entries:
AWS s3.CreateBucket => 200
AWS dynamodb.PutItem => 200
AWS lambda.Invoke => 200
| Error | Possible Cause | Solution |
|---|---|---|
ResourceNotFoundException | Resource doesn't exist | Create the resource first |
AccessDeniedException | IAM policy issue | Check IAM enforcement mode |
ValidationException | Invalid parameters | Verify request parameters |
ServiceException | Internal error | Check LocalStack logs for details |
# Lambda function logs appear in LocalStack logs
localstack logs | grep -A 10 "Lambda"
# Or use CloudWatch Logs locally
awslocal logs describe-log-groups
awslocal logs get-log-events \
--log-group-name /aws/lambda/my-function \
--log-stream-name <stream-name>
LAMBDA_DEBUG=1 localstack start -d
# Check overall health
curl http://localhost:4566/_localstack/health | jq
# Check specific service
curl http://localhost:4566/_localstack/health | jq '.services.s3'
localstack status)DEBUG=1 for verbose loggingnpx claudepluginhub localstack/skills --plugin localstackManage LocalStack container lifecycle: start, stop, restart, check status, configure environment variables, and troubleshoot. Useful for local AWS cloud emulation.
Design, build, deploy, test, and debug serverless applications with AWS Lambda, SAM CLI, event sources, and event-driven architectures.
Query logs, list and manage sources, perform structured searches with SQL-like queries, set up log-based alerts, and analyze logs in Better Stack (Logtail).