Check ID:
Provider: AWS
Service:
Severity: HIGH
Categories:
Resource type:
elasticbeanstalk_environment_cloudwatch_logging_enabledProvider: AWS
Service:
elasticbeanstalkSeverity: HIGH
Categories:
loggingResource type:
AwsElasticBeanstalkEnvironmentWhat this check verifies
Elastic Beanstalk environments are configured to stream instance and proxy logs to Amazon CloudWatch Logs via theStreamLogs setting
Risk
Without centralized logging to CloudWatch, logs may be lost during rotation or instance termination, delaying detection and response. Attackers can delete local logs to evade audits, hiding evidence of web attacks or config tampering and undermining confidentiality, integrity, and availability.Recommendation
Enable streaming to CloudWatch Logs. Set sensible retention, avoid deletion on termination, and restrict access with least-privilege IAM. Add metric filters and alerts for early detection, and retain archives to support forensics, accountability, and defense in depth.Remediation
- CLI
- Terraform
- Native IaC
- Dashboard steps
References
- https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/AWSHowTo.cloudwatchlogs.html
- https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environments-cfg-logging.html
- https://docs.aws.amazon.com/securityhub/latest/userguide/elasticbeanstalk-controls.html#elasticbeanstalk-3
Where this check fires
This check runs on every scheduled scan against your AWS account. Findings appear at Cloud Security → Findings filterable byCheck ID = elasticbeanstalk_environment_cloudwatch_logging_enabled. To re-evaluate after a fix, hit Run now on the account’s schedule under Cloud Security → Schedules — the next scan re-checks this control and marks the finding fixed or keeps it persistent.
← Back to AWS checks