Billing examples for Simple Log Service, covering pay-as-you-go, pay-by-ingested-data, and resource plan methods.
Pay-as-you-go
Pay-by-feature billing examples
Example 1
This example shows a free-tier scenario. One server generates 10 MB of logs per day. You use SLS to analyze daily logs and subscribe to them in real time through a Java program. Configuration: one shard, one-day retention, 20% upload compression ratio.
|
Billable item |
Description |
Monthly usage |
Monthly bill |
|
Active shard lease |
One Logstore with one shard = 31 shard-days per month. |
31 days |
Free |
|
Read/Write traffic |
|
124 MB |
Free |
|
Storage space - Log storage |
|
372 MB |
Free |
|
Index traffic - Log indexing |
Full-text index enabled: 10 MB/day × 31 days = 310 MB. |
310 MB |
Free |
|
Read/Write requests |
Batch upload requests to SLS. |
Fewer than 1 million requests |
Free |
Example 2
Website A generates 100 million access log entries per day (200 bytes each, ~18.6 GB total). Configuration: two shards, three-day retention, 20% upload compression ratio. Free quota excluded.
The daily cost is CNY 8.68794.
|
Billable item |
Description |
Daily usage |
Unit price |
Daily bill |
|
Read/Write traffic |
Upload traffic: 18.6 GB × 20% = 3.72 GB. |
3.72 GB |
CNY 0.180/GB/day |
CNY 0.6696 |
|
Index traffic - Log indexing |
Full-text index: 20 GB total (including 1.4 GB for reserved fields). |
20 GB |
CNY 0.350/GB/day |
CNY 7 |
|
Storage space - Log storage |
|
71.16 GB |
CNY 0.0115/GB/day |
CNY 0.81834 |
|
Read/Write requests |
Batch log uploads to SLS: ~1 million requests. |
1 million requests |
CNY 0.12/million requests/day |
CNY 0.12 |
|
Active shard lease |
Peak traffic: 6 MB/s (requires two shards). |
2 |
CNY 0.04 per unit per day |
CNY 0.08 |
Example 3
Application B generates 10 GB of time series data per day, uploaded to SLS in 200,000 requests. Configuration: two shards, three-day retention, 20% upload compression ratio. Free quota excluded.
The daily cost is CNY 2.59.
|
Billable item |
Description |
Daily usage |
Unit price |
Daily bill |
|
Read/Write traffic |
Upload traffic: 10 GB × 20% = 2 GB. |
2 GB |
CNY 0.180/GB/day |
CNY 0.36 |
|
Index traffic - Time series traffic |
SLS auto-indexes all fields. |
10 GB |
CNY 0.200/GB/day |
CNY 2 |
|
Storage space - Time series storage |
|
36 GB |
CNY 0.0035/GB/day |
CNY 0.126 |
|
Active shard lease |
Peak traffic: 6 MB/s (requires two shards). |
2 |
CNY 0.04 per item per day |
CNY 0.08 |
|
Read/Write requests |
Batch time series uploads to SLS: ~200,000 requests. |
200,000 requests |
CNY 0.12/million requests/day |
CNY 0.024 |
Example 4
Company A stores 40 billion log entries in SLS and uses Dedicated SQL for query and analysis. Per-operation cost breakdown:
This example covers Dedicated SQL billing only.
|
Billable item |
Description |
Single Metering |
Unit price |
Bill per operation |
|
Dedicated SQL |
A single query and analysis operation consumes 3.6 seconds of CPU time (Obtain CPU time). |
3.6 seconds / 3600 = 0.001 hours |
CNY 0.35/core-hour |
CNY 0.00035 |
Pay-by-ingested-data examples
Example 1
Customer A ingests 10 TB of data per day with 30-day retention. Additional features used: data transformation, query and analysis, scheduled SQL, intelligent alerting, and data shipping.
|
Billable item |
Description |
Daily usage |
Unit price |
Daily bill |
|
Raw data ingested |
10 TB of logs uploaded to SLS. |
10 TB |
CNY 0.4/GB |
CNY 4,000 |
|
Log storage |
The data is stored for 30 days. |
Pay-by-ingested-data includes free storage for the first 30 days. No fees incurred. |
|
CNY 0 |
Example 2
Customer B ingests 10 TB of data per day (5 TB storage) with 31-day retention. Data older than 30 days moves to IA storage. Additional features used: data transformation, query and analysis, scheduled SQL, intelligent alerting, and data shipping.
|
Billable item |
Description |
Daily usage |
Unit price |
Daily bill |
|
Raw data ingested |
10 TB of logs uploaded to SLS. |
10 TB |
CNY 0.4/GB |
CNY 4,000 |
|
Log storage |
The data is stored for 31 days, with a storage volume of 5 TB. |
Pay-by-ingested-data includes free storage for the first 30 days. No fees incurred. On day 31, IA storage fees apply for 5 TB. |
IA storage class: CNY 0.005/GB/day |
CNY 25.6 |
Resource plans
The following billing example is for a resource plan that is used in the public cloud.
A customer uses SLS daily with 2 shards, 100 GB of read/write traffic, 400 GB of index traffic, and 10,000 GB of stable data storage.
|
Billable item |
Description |
|
Read/Write traffic |
100 GB × CNY 0.18/GB = CNY 18 |
|
Index traffic - Log indexing |
400 GB × CNY 0.35/GB = CNY 140 |
|
Storage space - Log storage |
10,000 GB × CNY 0.0115/GB/day = CNY 115/day |
|
Active shard lease |
2 × CNY 0.04 = CNY 0.08 Note
Setting Number of Shards to 2 when creating a Logstore means 2 shard leases per day (60 shard-days per month at 30 days). |
Resource plan prices are subject to the actual discounted price on the console.
|
Billing cycle |
Pay-as-you-go |
One-year subscription plan |
Savings |
|
Monthly cost |
(CNY 18 + 140 + 115 + 0.08) × 30 days = CNY 8,192.4 |
Purchase eight 1,000 CU/month and two 100 CU/month one-year resource plans. The detailed cost is calculated as follows: 8 × CNY 8,520 / 12 months + 2 × CNY 900 / 12 months = CNY 5,830 |
Monthly savings vs. pay-as-you-go: CNY 8,192.4 - CNY 5,830 = CNY 2,362.4 |
|
Total annual cost |
(CNY 18 + 140 + 115 + 0.08) × 30 days × 12 months = CNY 98,308.8 |
Purchase eight 1,000 CU/month and two 100 CU/month one-year resource plans. The detailed cost is calculated as follows: 8 × CNY 8,520 + 2 × CNY 900 = CNY 69,960 |
Annual savings vs. pay-as-you-go: CNY 98,308.8 - CNY 69,960 = CNY 28,348.8 |