All Products
Search
Document Center

Simple Log Service:Collect OSS access logs to Log Audit Service

Last Updated:Feb 03, 2026

Aggregate access logs from multiple OSS buckets across regions into a single logstore for centralized auditing and analysis by using Log Audit Service.

Background

How it works

OSS bucket logs are first stored in their respective default logstores. After a collection rule is configured, Log Audit Service creates a data transformation task to aggregate logs from default logstores into the associated project and logstore. The following diagram illustrates this process for buckets under the same account.

image

Billing

Log Audit Service is free. Log storage and traffic incur standard charges. For more information, see Billing.

Prerequisites

Procedure

Step 1: Associate a project

  1. Log on to the Simple Log Service console. On the Audit & Security tab of the Log Application section , click Log Audit Service (New Version).

    image

  2. On the Log Audit Service (New Version) page, click Associate Project, configure the project in the dialog box, and then click Confirm.

    image

Step 2: Create a collection rule

  1. On the Log Audit (New Version) page, click the name of the project associated in the previous step.

  2. On the Rules tab, click Create Collection Rule.

  3. On the Create Collection Rule dialog box, configure the collection rule, as shown in the following figure. The recommended name for the new logstore (Destination Store for Centralized Storage) is central-{productCode}-{dataCode}-{ruleName}. For more information about the collection rule parameters, see Usage notes of cloud service log collection.

    Note

    If the Resource Matching Mode parameter is set to Instance Mode, enter the bucket name in the Instances field for the first time. After you create at least one collection rule, select buckets from the Instances drop-down list.

    image

Step 3: Verify the collection results

  1. On the Rules tab, click the name of the collection rule you just created.

  2. Select Query and Analysis > Access Logs to view the logs. Use the search syntax to specify query conditions. For field descriptions of the access logs, see Access logs.

    image

References