Using Console
Using CLI
<ELB Name>
, <S3 Bucket Name>
and <S3 Bucket Prefix>
with the appropriate values.Step 2: Verify if the access logs are enabled for the ELB by running the following command:Using Python
describe_load_balancers
method to get a list of all the ELBs in your AWS account.describe_load_balancer_attributes
method to get the attributes of each ELB.modify_load_balancer_attributes
method to enable logging for the ELB.