Stop billing

Updated at:

To stop billing for Simple Log Service, delete all your projects. Billing then stops automatically.

How billing stops

  • Each Logstore reserves two shards by default and incurs active shard rental fees whether used or not. Why are active shard rental fees generated?.

    Delete unused Logstores to stop these charges. Stop billing/Delete a Logstore.

  • You can delete logs only by modifying the data retention period. Manual deletion by content is not supported. Logs are removed after the retention period expires. To reduce storage costs, shorten the retention period or delete the project or Logstore.

  • You are charged for storage on the deletion day. No fees accrue from the next day.

    Simple Log Service bills on a daily basis. After you delete a resource, the charges for the deletion day are generated in the next day's bill. Therefore, when you check your bill on the third day after deletion, you can confirm that no new charges have been incurred.

Note

If your account is in arrears, storage resources are not immediately released. Billing continues until the resources are reclaimed by the system (typically 7 days after service suspension). We recommend that you delete unnecessary resources or top up your account promptly to avoid unexpected charges.

Note

If your project has the recycle bin feature enabled, deleted projects are moved to the recycle bin for retention. During the recycle bin retention period, storage charges still apply. To stop all billing immediately, you must permanently delete the project from the recycle bin.

Delete a project or Logstore

Warning

Deleting a project or Logstore permanently removes all its log data and configurations, which cannot be recovered.

Note

If your project has the recycle bin feature enabled, deleted data is moved to the recycle bin for retention. Storage charges still apply during the recycle bin retention period. To stop all billing immediately, permanently delete the project from the recycle bin.

To delete a Logstore in the console:

  1. Log on to the Simple Log Service console.

  2. In the top navigation bar, select the target region.

  3. In the project list, click the target project name to go to the details page.

  4. On the Logstores tab, find the Logstore you want to delete and click Delete in the Actions column.

  5. In the dialog box that displays the message "Can not be recovered after delete, are you sure?", click Confirm to complete the deletion.

Note

If the Logstore has Logtail collection configurations, the console displays an error message and blocks the deletion. Delete the related collection configurations first.

To delete a project in the console:

  1. Log on to the Simple Log Service console.

  2. In the top navigation bar, select the target region.

  3. In the project list, click Delete in the Actions column of the target project.

  4. In the dialog box, select a reason for deletion from the dropdown (7 preset options are provided, or select "Other" to enter a custom reason), then click Confirm to complete the deletion.

Note

The project deletion dialog confirms deletion via a reason dropdown selection; it does not require you to type the project name for confirmation. For stricter deletion protection, enable the project recycle bin feature, which requires typing the project name to confirm deletion.

Cloud service logs

When you enable log analysis for Alibaba Cloud services (Elastic Compute, Storage, Security, Database, etc.), a project and Logstore are automatically created. Overview of cloud service logs.

To stop collecting cloud service logs:

  1. Disable log analysis in the cloud service console.

  2. Delete the project or Logstore in the Simple Log Service console:

To stop billing for logs collected from an ACK cluster:

If you use an ACK cluster to collect Kubernetes logs, complete the following additional steps to fully stop collection and billing:

  1. On the cluster's Components page, uninstall the LoongCollector component.

  2. On the cluster's Basic Information page, go to Security and Auditing and disable cluster audit logging.

  3. Uninstall the event log component. In some ACK versions, kube-eventer may no longer exist and may have been replaced by ack-node-problem-detector. Check the Components page to confirm the actual component name before proceeding.

  4. On the cluster's Log Center page, disable control plane component log collection.

  5. In the Simple Log Service console, delete the corresponding project. This action cannot be undone.

After you complete all the preceding steps, it takes about three days for the billing information to update.

Note

Cloud service log projects (such as those for Web Application Firewall, Security Center, etc.) are automatically created by the corresponding cloud services and cannot be deleted directly from the Simple Log Service console. To delete these projects, go to the respective cloud service console.

Log Audit Service logs

  • To stop collection while retaining existing logs: Stop log collection. Logs are deleted when the retention period expires.

  • To delete all Log Audit Service resources (projects, Logstores, dashboards, alerts): Delete audit resources.

CloudLens logs

Notes

Warning

The CloudLens feature requires at least one project to exist under your Alibaba Cloud account.

When you enable and use CloudLens, Simple Log Service checks whether a project exists under your account using the following logic.

Detection logic
  1. 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-heyuan is created in the China (Heyuan) region.

  2. After you enable CloudLens and navigate to the CloudLens page, Simple Log Service only checks whether a project exists under your Alibaba Cloud account. It does not automatically create a project in the China (Heyuan) region. To create a project manually, see Manage projects.

Delete a project
  • To delete the aliyun-product-data-Alibaba Cloud account ID-cn-heyuan project, 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.com
  • To delete other projects and Logstores, see Manage Logstores and Manage projects.

Other logs

Selectively stop billing: If you want to keep specific business logs (such as OSS access logs) but stop billing for other unrelated Logstores, you can delete individual Logstores without deleting the entire project. This allows you to stop billing for specific types of logs independently.

Note

Before deleting a Logstore, confirm that it is not referenced by any Logtail collection configurations. The console automatically checks this and blocks deletion with the message "Can not be recovered after delete, are you sure?" if Logtail configurations exist. We also recommend confirming that the Logstore is not referenced by dashboards, alert rules, or data processing tasks before deletion.

How do I confirm that billing for Simple Log Service has completely stopped?

After you delete projects or Logstores, you can confirm that billing has completely stopped using the following methods:

  1. Resource check: Log on to the Simple Log Service console and confirm that the project list is empty across all regions, or that only projects you explicitly need to keep remain.

  2. Associated service check: If you use log analysis features of other cloud services such as Security Center or Web Application Firewall, confirm that you have disabled log collection in the respective cloud service consoles and deleted the corresponding projects or Logstores in Simple Log Service. Cloud service log projects cannot be deleted directly from the Simple Log Service console.

  3. Bill verification: Simple Log Service bills on a daily basis. We recommend that you check your bill details 2-3 days after deletion to confirm that no new Simple Log Service charges appear. If your account is in arrears, storage resources are not immediately released and billing continues until resources are reclaimed (typically 7 days after service suspension).

Why was my bill 0 before, but charges appear now?

A LogStore incurs active shard lease fees for as long as it exists, regardless of whether you have enabled any subscription service. For more information, see Why are active shard rental fees generated?.

If your earlier bills showed 0, the charges may have been fully offset by vouchers or coupons. After the voucher or coupon balance is used up, the charges appear on your bill as normal.

Go to the User Center to check the usage details of your vouchers and coupons and confirm whether the balance has been used up. If you no longer need Simple Log Service, delete your projects or LogStores as described in this topic to stop billing.

Related documents