Disable access logs for your Classic Load Balancer - Elastic Load Balancing
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Disable access logs for your Classic Load Balancer

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 information about managing your S3 bucket, see Working with buckets in the Amazon Simple Storage Service User Guide.

To disable access logs for your load balancer using the console
  1. Open the Amazon EC2 console at https://console.amazonaws.cn/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 Amazon 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": "my-loadbalancer-logs", "EmitInterval": 60, "Enabled": false, "S3BucketPrefix": "my-app" } } }