Simple Log Service enables resource management of projects and logstores through the Simple Log Service console, API operations, SDKs, and command-line interface (CLI).
Prerequisites
You have an Alibaba Cloud account.
Simple Log Service is activated.
NoteUpon activation of Simple Log Service, a service-linked role named AliyunServiceRoleForSLSAudit is automatically created.
To manage Simple Log Service using the API, SDK, or CLI, create an AccessKey pair.
To manage it as a RAM user, create a RAM user and grant permissions.
Resource management
A project is the primary resource container in Simple Log Service, containing logstores, metricstores, and eventstores. It provides an endpoint to access the resources in the project. Resource management allows you to adjust quotas at the project level to control costs and prevent waste. At the store level, you can adjust the number of shards for performance, organize resources using groups and tags, and improve long-distance log transmission.
Create and manage Simple Log Service projects.
Initially, create a project in the desired region based on your business needs.
A project supports dynamic allocation of multiple metrics. You can adjust resource quotas according to your actual needs to ensure resource availability. Also, consider whether to modify the resource quota based on resource throttling and solutions.
Create storage resources.
To store log data, create a logstore.
To store metric data, create a metricstore.
To store event data, create an eventstore.
Simple Log Service uses shards to manage the read and write capabilities of logstores, eventstores, and metricstores. Adjust the number of shards to control the maximum read and write capabilities of Simple Log Service.
For long-distance log transmission, such as writing logs from outside China to the Chinese mainland, enable transfer acceleration.
Simple Log Service offers resource groups to isolate access privileges in various scenarios and implement permission management within resource groups.
Comparison of logstore, metricstore, and eventstore
Store | Data type | Scenarios | Related links |
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 Prometheus data model, such as metric naming conventions, label mechanisms, and data retention policies. | 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 protocol. | Used to store system or application-generated data about specific activities or actions, such as user clicks and transactions. |