Manage Simple Log Service projects and Logstores through the console, API, SDK, or CLI.
Prerequisites
-
You have an Alibaba Cloud account.
-
Simple Log Service is activated.
NoteActivating Simple Log Service automatically creates the AliyunServiceRoleForSLSAudit service-linked role.
-
To manage Simple Log Service using the API, SDK, or CLI, create an AccessKey pair.
-
To manage resources as a RAM user, create a RAM user and grant permissions.
Resource management
A project is the primary resource container in Simple Log Service. Each project holds Logstores, Metricstores, and Eventstores and provides an endpoint for resource access. Adjust quotas at the project level to control costs. At the store level, tune shard counts for throughput, organize resources with groups and tags, and enable transfer acceleration for cross-region transmission.
-
Create and manage projects.
-
Create a project in a region that fits your business needs.
-
Projects support dynamic allocation of multiple metrics. Adjust resource quotas based on your needs. If you encounter limits, review 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.
-
-
Shards control read and write throughput for Logstores, Metricstores, and Eventstores. Adjust shard count to control maximum read and write throughput.
-
Enable transfer acceleration for cross-region log transmission, such as writing logs from outside China to the Chinese mainland.
-
Use resource groups to isolate access privileges and manage permissions within resource groups.
Comparison of Logstore, Metricstore, and Eventstore
|
Store |
Data type |
Scenarios |
Related links |
|
Logstore |
General logs |
Stores application or system-generated logs, such as error logs and access logs. |
|
|
Metricstore |
Time series data following the Prometheus data model, including naming conventions, labels, and retention policies. |
Stores performance metrics for storage systems and applications, such as CPU utilization and memory usage. |
|
|
Eventstore |
Event data following the CloudEvents protocol. |
Stores event data about specific activities, such as user clicks and transactions. |