Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Disable access logs for your Classic Load Balancer

Focus mode
Disable access logs for your Classic Load Balancer - Elastic Load Balancing

You can disable access logs for your load balancer at any time. After you disable access logs, your access logs remain in your Amazon S3 until you delete the them. For more information, see Working with S3 buckets in the Amazon S3 User Guide.

To disable access logs for your load balancer using the console
  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. On the navigation pane, under Load Balancing, choose Load Balancers.

  3. Select the name of your load balancer to open its details page.

  4. On the Attributes tab, choose Edit.

  5. On the Edit load balancer attributes page, in the Monitoring section, disable Access logs.

To disable access logs using the AWS CLI

Use the following modify-load-balancer-attributes command to disable access logs:

aws elb modify-load-balancer-attributes --load-balancer-name my-loadbalancer --load-balancer-attributes "{\"AccessLog\":{\"Enabled\":false}}"

The following is an example response:

{ "LoadBalancerName": "my-loadbalancer", "LoadBalancerAttributes": { "AccessLog": { "S3BucketName": "amzn-s3-demo-loadbalancer-logs", "EmitInterval": 60, "Enabled": false, "S3BucketPrefix": "my-app" } } }
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.