Simple Log Service allows you to manage resources such as projects and Logstores in the Simple Log Service console, by calling API operations, and by using SDKs and the command-line interface (CLI).
Before you begin
Create an Alibaba Cloud account and complete real-name verification.
For more information, visit the Sign up to Alibaba Cloud page.
Activate Simple Log Service.
Log on to the Simple Log Service console.
Follow the on-screen instructions to activate Simple Log Service.
NoteWhen you activate Simple Log Service, a service-linked role named AliyunServiceRoleForSLSAudit is automatically created. For more information, see Manage the AliyunServiceRoleForSLSAudit service-linked role.
Before you call API operations, use SDKs, or use the CLI to manage resources in Simple Log Service, you must create an AccessKey pair.
For more information, see Obtain an AccessKey pair.
If you want to manage Simple Log Service resources as a RAM user, you must create the RAM user and grant the required permissions to the RAM user.
For more information, see Create a RAM user and authorize the RAM user to access Simple Log Service.
Resource management
A project can contain multiple types of stores. A project is a resource management unit in Simple Log Service and provides an endpoint that you can use to access the resources in the project. You can adjust resource quotas by project.
Create and manage a Simple Log Service project.
Create a project in a specified region based on your business requirements. For more information, see Create a project.
For information about how to manage resource quotas, see Adjust resource quotas.
Create a store.
To store log data, you must create a Logstore. For more information, see Create a Logstore.
To store metric data, you must create a Metricstore. For more information, see Create a Metricstore.
To store event data, you must create an Eventstore. For more information, see Manage an Eventstore.
If you want to modify the storage, you can manage shards. For more information, see Manage shards.
Comparison of Logstores, Metricstores, and Eventstores
Store | Data type | Scenario | References |
Logstore | General logs | Used to store application or system-generated logs, such as error logs and access logs | |
Metricstore | Time series data that follows the data model of Prometheus | Used to store performance metrics that are commonly used in storage systems or applications, such as CPU utilization and memory usage | |
Eventstore | Event data that follows the CloudEvents specification | Used to store system or application-generated data about specific activities or actions, such as user clicks and transactions |