All Products
Search
Document Center

Simple Log Service:Cloud Config

Last Updated:Nov 28, 2024

Cloud Config is an automated resource auditing service that continuously assesses the compliance of IT resources in the cloud. Cloud Config can generate scheduled snapshots, record configuration changes, and detect non-compliance events. You can collect Cloud Config logs to a specified Logstore of Simple Log Service for subsequent query and analysis. This topic describes how to collect Cloud Config logs to the new version of Log Audit Service.

Background information

  • Cloud Config is a resource auditing service that allows you to trace configuration changes of your resources and evaluate configuration compliance. For more information, see What is Cloud Config?

  • The new version of Log Audit Service is based on Alibaba Cloud Simple Log Service. You can use multiple projects to manage logs. You can aggregate, query, and analyze cloud service logs in a centralized manner, and you can process logs to meet region-specific data compliance requirements. This way, you can manage data in a legal and orderly manner. For more information, see Overview of Log Audit Service (new version).

Overview

The following figure shows the flowchart of collecting Cloud Config logs to the new version of Log Audit Service.

image

Prerequisites

1. Associate a project

  1. Log on to the Simple Log Service console and create a project and a Logstore. The Logstore name must be prefixed with cloudconfig_. For this example, create a project named sample-config-cn-hangzhou in the China (Hangzhou) region and a Logstore named cloudconfig_sample in the project.

  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, configure the parameters and click Confirm.

    Note

    Cloud Config logs are collected to the project that you associate with the new version of Log Audit Service.

    image

  4. On the Log Audit (New Version) page, click the associated project.

    image

  5. On the Cloud Services tab, click Enable Now for Cloud Config.

    image

2. Create a data delivery task

  1. In the Go to Cloud Config Console Create Delivery panel, read the requirements for creating a data delivery task. Then, click Cloud Config Console.

    image

  2. In the Cloud Config console, configure parameters to create a data delivery task named sample-config. The following figure shows sample configurations.

    image

  3. After you create the data delivery task, view the details of the task.

    image

3. Query and analyze logs

  1. On the Log Audit (New Version) page, click the project that you want to manage. On the Cloud Services tab of the page that appears, click View for Cloud Config in the Policy-enabled Cloud Services section.

    image

  2. On the Cloud Config Logs tab of the Query and Analysis page, query and analyze logs.

    Note

    The first time you access the Logstore that you specify for the data delivery task in the Cloud Config console, indexing is disabled for the Logstore. Errors may occur. Make sure that indexing is enabled for your Logstore. For more information, see Create indexes.

    image

References

  • For more information about how to enable indexing for a Logstore, see Create indexes. For more information about how to query and analyze logs in a Logstore, see Query and analyze logs.

  • In this topic, Cloud Config logs are used only as an example. For more information about the log types, default project and Logstore names, and billing details of other supported cloud services, see Usage notes of cloud service configuration.