If you want to deliver resource change logs to a specified Logstore in Log Service,
you must specify a project and Logstore. After the resource change logs are delivered
to the specified Logstore, you can query and analyze the logs.
Prerequisites
Log Service is activated. If you have not activated Log Service, you must log on to
the
Log Service console and activate the service as prompted.
Procedure
- Log on to the Cloud Config console.
- In the left-side navigation pane, choose .
- On the Deliver Logs to SLS page, turn on the SLS Settings switch.
- Set the required parameters to specify a project and a Logstore to store logs.
The following table describes the parameters.
Parameter |
Description |
Project Region |
The region where the project resides. |
Project Name |
The name of the project. The project name must be unique within an Alibaba Cloud account
in a region.
- If you select Create a project, you must specify a project name.
- If you select Select an existing project of your account, you must select an existing project from the Project Name drop-down list.
|
Logstore Name |
The name of the Logstore. The name must be unique within an Alibaba Cloud account
in a region.
- If you select Create a project, you must specify a Logstore name.
- If you select Select an existing project of your account, you must select an existing Logstore from the Logstore Name drop-down list.
|
- Click OK.
What to do next
After the resource change logs are delivered to the specified Logstore, you can query
and analyze the resource change logs in the Logstore within a specified period. For
more information, see Query logs.