• Elastic Load Balancing

  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



      Example Value


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


      Access to Bucket

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


      Access to ACL

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


    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



      Example Value

      Enable Logging

      Whether to enable access logging


      Backup Interval (min)

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


      OBS Bucket

      Target bucket with read and write permissions



      Log storage directory

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