• Elastic Load Balancing

elb
  1. Help Center
  2. Elastic Load Balancing
  3. User Guide
  4. Management
  5. Access Log

Access Log

Access logs record HTTP and HTTPS requests for layer-7 load balancing. Only public network classic load balancers have access logs, and these logs are stored in an OBS bucket.

Before configuring access logs, you need to have created a load balancer and have an OBS bucket available when you configure access logs. For how to create an OBS bucket, see "Creating a Bucket" in the Object Storage Service User Guide.

  1. Grant read and write permissions to the ELB administrator.
    1. Log in to the management console. On the Object Storage Service page, click the name of the target bucket.
    2. In the navigation pane on the left, choose Permissions.
    3. On the displayed page, click Bucket ACL.
    4. Click Add and set the parameters.
      Table 1 Parameter description

      Parameter

      Description

      Example Value

      Account

      Specifies the account ID or account name of the ELB administrator.

      N/A

      Access to Bucket

      Specifies the permissions to read data from or write data to an OBS bucket.

      Read/Write

      Access to ACL

      Allows the authorized user to read or write the bucket ACL.

      Read/Write

    5. Click Save.
  2. Associate the bucket with a load balancer.
    1. Locate the target load balancer and click More in the Operation column.
    2. Select Configure Access Log.
    3. In the Configure Access Log dialog box, enable access logging.
    4. Select the associated OBS bucket and configure log information.
      Figure 1 Configure Access Log
      Table 2 Parameter description

      Parameter

      Description

      Example Value

      Enable Logging

      Whether to enable access logging

      N/A

      Backup Interval (min)

      Log backup interval in minutes, which is 60 minutes by default

      60

      OBS Bucket

      Target bucket with read and write permissions

      obs01

      Prefix

      Log storage directory

      If this field is left blank, logs will be saved to the root directory of the target bucket.

      log01