Medium
ELB
Regional
Application and Classic Load Balancers logging should be enabled
NISTISO 27001HIPAA
Description
This check verifies that logging is enabled for Application and Classic Load Balancers to capture detailed information about requests sent to the load balancer. Logging is an essential security and compliance feature that helps in post-incident analysis and troubleshooting.
Remediation
To enable logging for Load Balancers, follow these steps:
Steps
- For Application Load Balancers:
- Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
- On the navigation pane, under LOAD BALANCING, choose Load Balancers.
- Select the Application Load Balancer.
- Choose the Description tab, and find the Attributes section.
- If 'access_logs.s3.enabled' is set to false, choose Edit attributes.
- Set 'access_logs.s3.enabled' to true and provide an S3 bucket for the logs.
- For Classic Load Balancers:
- Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
- On the navigation pane, under LOAD BALANCING, choose Load Balancers.
- Select the Classic Load Balancer.
- Choose the Description tab, and find the Attributes section.
- If Access Log is disabled, choose Edit attributes.
- Enable Access Log by setting it to true and provide an S3 bucket for the logs.
Compliance
NISTISO 27001HIPAA