Getting Information About Your Access Logs

You can get information about access logs for your load balancers, such as the emit interval and the OOS bucket name.

If you exceed the number of identical requests allowed for a configured time period, the Throttling error message is returned.

Getting Information About Your Access Logs Using Cockpit

  1. Click Services > Load Balancers.

  2. Click the load balancer you want to get information about.

  3. Click Modify Attributes .
    The MODIFY ATTRIBUTES dialog box appears.

  4. If access logs are enabled:

    1. The Enable logs box is checked.

    2. You can modify the OOS Bucket Name and Emit Interval fields.

    3. Information about the latest logs appears at the bottom of the dialog box.

  5. If access logs are disabled:

    1. The Enable logs box is unchecked.

    2. You cannot modify the OOS Bucket Name and Emit Interval fields.

Getting Information About Your Access Logs Using AWS CLI

To get information about the access logs of a load balancer, use the describe-load-balancer-attributes command following this syntax:

Request sample
$ aws elb describe-load-balancer-attributes \
    --profile YOUR_PROFILE  \
    --load-balancer-name LOAD_BALANCER_NAME \
    --endpoint https://lbu.eu-west-2.outscale.com

This command contains the following attributes that you need to specify:

  • (optional) profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.

  • load-balancer-name: The name of the load balancer whose access logs you want to get information about.

  • endpoint: The endpoint corresponding to the Region you want to send the request to.

The describe-load-balancer-attributes command returns the following elements:

  • LoadBalancerAttributes: Information about the specified load balancer. This element contains the following information:

    • AccessLog: Information about the publication of the access logs. This element contains the following information:

      • S3BucketPrefix: The path to the folder in your OOS bucket for the publication of the access logs. If not specified, they are published at the root level of your bucket.

      • EmitInterval: The time span for the publication of the access logs in the OOS bucket, that can be either 5 or 60 minutes (by default, 60 minutes).

      • Enabled: If true, the access logs are enabled for the specified load balancer. If false, they are not.

      • S3BucketName: The name of the OOS bucket in which the access logs are published. For more information, see About OOS.

        Result sample
        {
            "LoadBalancerAttributes": {
                "AccessLog": {
                    "S3BucketPrefix": "BUCKET_PREFIX",
                    "EmitInterval": 60,
                    "Enabled": true,
                    "S3BucketName":"BUCKET_NAME"
                }
            }
        }

Related Pages

Corresponding API Method

AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.