# Access Logging

Access logs record HTTP and HTTPS requests made to load balancers, and these logs are stored in an OBS bucket. Only public network classic load balancers support access logging.

Before configuring access logging, ensure that you have created a load balancer and OBS bucket. For details, 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 destination bucket.
   2. In the navigation pane on the left, choose Permissions.
   3. On the displayed page, click Bucket ACLs.
   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 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 | Destination 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 destination bucket. | log01