Menu
Elastic Load Balancing
Classic Load Balancers

Disable Access Logs for Your Classic Load Balancer

You can disable access logs for your load balancer at any time. After you disable access logging, 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 Console User Guide.

To disable access logging 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 your load balancer.

  4. On the Description tab, for Access Logs, choose (Edit).

  5. On the Configure Access Logs page, clear Enable access logs.

  6. Choose Save.

To disable access logging using the AWS CLI

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

Copy
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"
        }
    }
}