All Products
Search
Document Center

Simple Log Service:Enable the collection of cloud product logs

Last Updated:Aug 09, 2024

The new version of Log Audit Service supports the storage and audit of logs across multiple accounts and central stores. This topic describes how to enable the collection of cloud product logs by using the new version of Log Audit Service.

Prerequisites

Simple Log Service is activated. You can activate Simple Log Service the first time you log on to the Simple Log Service console.

1. Associate a project

  1. Log on to the Simple Log Service console.

  2. In the Log Application section, click the Audit & Security tab. Then, click Log Audit Service (New Version).

    image

  3. On the Log Audit (New Version) page, click Associate Project. In the Associate Project dialog box, select the region and project that you want to use and click Confirm.

    image

2. Collect product logs

2.1 Create a collection rule

  1. On the Log Audit (New Version) page, find the project that you want to manage and click Details in the Actions column.

    image

  2. On the page that appears, create a collection rule for Object Storage Service (OSS) access logs based on the following figure.

    Note
    • The new version of Log Audit Service is designed to support centralized log storage across multiple accounts and multiple regions. When you create a collection rule, you must specify the centralized storage-related project and Logstore.

    • Otherwise, the collection rule is not displayed in the rule list of the associated project in the new version of Log Audit Service. For example, the built-in rules of the CloudLens For SLS application are not displayed in the list.

    image

2.2 Query and analyze logs

  1. In the collection rule list, click a rule named sample. When you create a collection rule, the destination project for centralized storage is the associated project.

    image

  2. View details on the Data Import Management and Query and Analysis pages.

    image

3. Disassociate a project

Note
  • If you disassociate a project, the collection rules that are configured for the project are not automatically deleted.

  • Before you disassociate a project, we recommend that you delete the collection rules that are configured for the project. Otherwise, the destination project and Logstore are automatically created because of the collection rules.

On the Log Audit (New Version) page, find the project that you want to manage and click Disassociate in the Actions column. In the popover that appears, click Confirm.

image