Documentation
README
10.2 Ensure Persistent logs is setup and configured to S3 (Manual)
Description
Elastic Beanstalk can be configured to automatically stream logs to the CloudWatch service.
Rationale
With CloudWatch Logs, you can monitor and archive your Elastic Beanstalk application, system, and custom log files from Amazon EC2 instances of your environments.
Impact
N/A
Audit Procedure
Using AWS Console
- Login to AWS Console using https://console.aws.amazon.com/elasticbeanstalk
- On the left hand side click
Environments - Click on the
Environment namethat you want to review - Under the
environment_name-envin the left column clickConfiguration - Scroll down under Configurations
- Under category look for
Softwares - Confirm
Log streaming: enabled - If status options reads
Log streaming: disabledrefer to the remediation below. - Repeat steps 3-8 for each environment within the current region.
- Then repeat the Audit process for all other regions.
Using AWS CLI
N/A - This control is manual and console-based.
Expected Result
Log streaming: enabled is displayed under the Softwares category in the environment Configuration.
Remediation
Using AWS Console
- Login to AWS Console using https://console.aws.amazon.com/elasticbeanstalk
- On the left hand side click
Environments - Click on the
Environment namethat you want to update - Under the
environment_name-envin the left column clickConfiguration - Scroll down under Configurations
- Under category look for
Software - Click on Edit
- On the Modify software page:
Instance log streaming to CloudWatch Logs
Log streaming - click the Enabled checkbox
Set the required retention based on Organization requirements
Lifecycle - Keep logs after terminating environment
- Click Apply
- Repeat steps 3-8 for each environment within the current region that needs Managed updates set.
Using AWS CLI
N/A - This control is manual and console-based.
Default Value
Log streaming to CloudWatch is not enabled by default.
References
CIS Controls
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|---|---|---|---|
| v8 | 8.2 Collect Audit Logs | X | X | X |
| v7 | 6.2 Activate audit logging | X | X | X |
Profile
Level 1 | Manual