All Products
Search
Document Center

Simple Log Service:Billing examples

Last Updated:Jun 02, 2026

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

  • Network traffic for uploading logs: 10 MB/day × 20% × 31 days = 62 MB

  • Network traffic for subscribing to logs using Java: 10 MB/day × 20% × 31 days = 62 MB

124 MB

Free

Storage space - Log storage

  • Log storage volume: 10 MB/day × 20% × 31 days = 62 MB

  • Storage for indexed logs: 10 MB/day × 31 days = 310 MB

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 USD 2.171985.

Billable item

Description

Daily usage

Unit price

Daily bill

Read/Write traffic

Upload traffic: 18.6 GB × 20% = 3.72 GB.

3.72 GB

USD 0.045/GB/day

USD 0.1674

Index traffic - Log indexing

Full-text index: 20 GB total (including 1.4 GB for reserved fields).

20 GB

USD 0.0875/GB/day

USD 1.75

Storage space - Log storage

  • Log storage: 18.6 GB/day × 20% × 3 days = 11.16 GB.

  • Index storage: 20 GB/day × 3 days = 60 GB.

71.16 GB

USD 0.002875/GB/day

USD 0.204585

Read/Write requests

Batch log uploads to SLS: ~1 million requests.

1 million requests

USD 0.03/million requests/day

USD 0.03

Active shard lease

Peak traffic: 6 MB/s (requires two shards).

2

USD 0.01/shard/day

USD 0.02

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 USD 0.4054.

Billable item

Description

Daily usage

Unit price

Daily bill

Read/Write traffic

Upload traffic: 10 GB × 20% = 2 GB.

2 GB

USD 0.045/GB/day

USD 0.09

Index traffic - Time series traffic

SLS auto-indexes all fields.

10 GB

USD 0.02721/GB/day

USD 0.2721

Storage space - Time series storage

  • Time series storage: 10 GB/day × 20% × 3 days = 6 GB.

  • Index storage: 10 GB/day × 3 days = 30 GB.

36 GB

USD 0.00048/GB/day

USD 0.0173

Active shard lease

Peak traffic: 6 MB/s (requires two shards).

2

USD 0.01/shard/day

USD 0.02

Read/Write requests

Batch time series uploads to SLS: ~200,000 requests.

200,000 requests

USD 0.03/million requests/day

USD 0.006

Example 4

Company A stores 40 billion log entries in SLS and uses Dedicated SQL for query and analysis. Per-operation cost breakdown:

Note

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

USD 0.05174/core-hour

USD 0.00005174

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

USD 0.061/GB

USD 624.64

Log storage

The data is stored for 30 days.

Pay-by-ingested-data includes free storage for the first 30 days. No fees incurred.

  • Hot storage: USD 0.002875/GB/day

  • IA storage class: USD 0.000762/GB/day

USD 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

USD 0.061/GB

USD 624.64

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: USD 0.000762/GB/day

USD 3.90144

Resource plans

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 × USD 0.045/GB = USD 4.5

Index traffic - Log indexing

400 GB × USD 0.0875/GB = USD 35

Storage space - Log storage

10,000 GB × USD 0.002875/GB/day = USD 28.75/day

Active shard lease

2 × USD 0.01 = USD 0.02

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).

Note

Resource plan prices are subject to the actual discounted price on the console.

Billing method

Pay-as-you-go

One-year subscription plan

Savings

Monthly cost

(USD 4.5 + 35 + 28.75 + 0.02) × 30 days = USD 2,048.1

Purchase two 1,000 CU/month and three 20 CU/month one-year subscription plans. The detailed cost is calculated as follows:

2 × USD 8,520 / 12 months + 3 × USD 180 / 12 months = USD 1,465

Monthly savings vs. pay-as-you-go: USD 2,048.1 - USD 1,465 = USD 583.1

Total annual cost

(USD 4.5 + 35 + 28.75 + 0.02) × 30 days × 12 months = USD 24,577.2

Purchase two 1,000 CU/month and three 20 CU/month one-year subscription plans. The detailed cost is calculated as follows:

2 × USD 8,520 + 3 × USD 180 = USD 17,580

Annual savings vs. pay-as-you-go: USD 24,577.2 - USD 17,580 = USD 6,997.2