To stop billing for Simple Log Service, delete all your projects. Billing then stops automatically.
Billing stop details
-
When you create a Logstore, Simple Log Service reserves two shards by default. Therefore, as long as the Logstore exists, it incurs rental fees for active shards, regardless of whether it is used. Simple Log Service charges you based on the number of active shards you use. For more information about shard rental fees, see Why are active shard rental fees generated?. If you no longer need to use a Logstore to store logs, delete it promptly to avoid incurring additional fees. For specific instructions, see Stop billing/Delete a Logstore.
-
Currently, Simple Log Service allows you to delete logs only by modifying the data retention period. You cannot manually delete logs based on their content. Logs are deleted after the specified retention period expires. To reduce storage costs, you can set a shorter retention period. If you no longer need the existing logs, you can directly delete the project or Logstore.
-
You will be charged for resources such as storage on the day you delete a project. No fees are generated from the next day onward. This means that you will not receive a bill from Simple Log Service on the third day after the deletion.
Delete a project or Logstore
Deleting a project or Logstore permanently removes all its log data and configurations, which cannot be recovered.
Cloud service logs
When you enable the log analysis service for various Alibaba Cloud services, such as Elastic Compute, Storage Service, Security, and Database, a corresponding project and Logstore are automatically created in the Simple Log Service console. For more information, see Overview of cloud service logs.
If you no longer need logs from cloud services, perform the following steps.
-
In the console of the corresponding cloud service, disable the log analysis feature.
-
You can delete the project or Logstore in the Simple Log Service console.
-
To keep the project and delete only the Logstore, see Stop billing/Delete a Logstore.
-
To delete the entire project, see Manage projects.
-
Log Audit Service logs
-
If you no longer need to collect cloud service logs but want to temporarily retain the collected logs, see Stop log collection. The logs are deleted when their retention period expires.
-
If you need to clean up and delete all Simple Log Service resources related to Log Audit Service, such as projects, Logstores, dashboards, and alerts, see Delete audit resources.
CloudLens logs
Notes
The CloudLens feature requires at least one project to exist under your Alibaba Cloud account.
When you enable and use the CloudLens feature, Simple Log Service checks whether a project exists under your account based on the following logic.
Detection logic
When you enable the CloudLens feature for the first time, Simple Log Service checks whether a project exists under your Alibaba Cloud account. If no project exists, a project named
aliyun-product-data-Alibaba Cloud account ID-cn-heyuanis created in the China (Heyuan) region.After you enable the CloudLens feature and navigate to the CloudLens page, Simple Log Service checks only whether a project exists under your Alibaba Cloud account. It does not automatically create a project in the China (Heyuan) region. You can manually create a project. For more information about how to create a project, see Manage projects.
Delete a project
To delete the
aliyun-product-data-Alibaba Cloud account ID-cn-heyuanproject, open Cloud Shell and run the following command. Replace Alibaba Cloud account ID with your actual account ID.aliyunlog log delete_project --project_name=aliyun-product-data-Alibaba Cloud account ID-cn-heyuan --region-endpoint=cn-heyuan.log.aliyuncs.comFor more information about how to delete other projects and Logstores, see Manage Logstores and Manage projects.
Other logs
-
To keep the project and delete only the Logstore, see Stop billing/Delete a Logstore.
-
To delete the entire project, see Manage projects.
Related documents
-
To view the storage capacity of a project or Logstore, see How do I view the storage capacity and consumption records of Simple Log Service?.
-
New resource plans can be used to offset charges for all billable items of Simple Log Service and provide a fixed monthly resource quota within their validity period. When the monthly quota is used up, you are automatically charged on a pay-as-you-go basis. For more information, see Introduction to Resource Plans.
-
Simple Log Service supports deleting a project or a Logstore by using an API. For more information, see Delete a project and Delete a Logstore.