This rule focuses on enabling logging for ELB application and classic load balancer for better monitoring and analysis.
Rule | ELB application and classic load balancer logging should be enabled |
Framework | NIST 800-53 Revision 5 |
Severity | ✔ High |
Rule Description
ELB (Elastic Load Balancer) application and classic load balancer logging should be enabled to comply with NIST (National Institute of Standards and Technology) 800-53 Revision 5 security framework. This rule ensures that logs are generated for load balancer activities, providing visibility into potential security threats and aiding in incident response and compliance audits.
Troubleshooting Steps
If load balancer logging is not enabled, follow these troubleshooting steps:
Necessary Codes
To enable ELB application and classic load balancer logging, the following code can be used:
aws elbv2 modify-load-balancer-attributes --load-balancer-arn <load_balancer_ARN> --attributes Key=access_logs.s3.enabled,Value=true Key=access_logs.s3.bucket,Value=<s3_bucket_name>
Replace
<load_balancer_ARN>
with the ARN (Amazon Resource Name) of the load balancer, and <s3_bucket_name>
with the name of the S3 bucket where the logs will be stored.Step-by-step Guide for Remediation
Follow the steps below to enable logging for ELB application and classic load balancers:
Note: Replaceaws elbv2 modify-load-balancer-attributes --load-balancer-arn <load_balancer_ARN> --attributes Key=access_logs.s3.enabled,Value=true Key=access_logs.s3.bucket,Value=<s3_bucket_name>
<load_balancer_ARN>
with the ARN of the load balancer and <s3_bucket_name>
with the name of the S3 bucket created in step 2.Ensure that the response contains theaws elbv2 describe-load-balancer-attributes --load-balancer-arn <load_balancer_ARN>
"access_logs.s3.enabled": true
and "access_logs.s3.bucket": "<s3_bucket_name>"
attributes.By following these steps, you will enable ELB application and classic load balancer logging to comply with NIST 800-53 Revision 5. The logs will now be stored in the configured S3 bucket, providing visibility into load balancer activities for security and compliance purposes.