All Products
Search
Document Center

Simple Log Service:Billing examples

Last Updated:Oct 12, 2024

This topic provides billing examples of Simple Log Service.

Pay-as-you-go

Pay-by-feature

Example 1

You use a server that generates 10 MB of log data per day and you want to use Simple Log Service to analyze the log data and run a Java program to subscribe to log processing events. One shard is used, and the data retention period is one day. You are not charged for using Simple Log Service. In this example, the compression ratio is 5:1. The following table describes the billing details.

Billable item

Description

Monthly amount

Monthly fee

Active shards

If you create only one Logstore and use only one shard, the number of active shards in the current month is 31 shard days.

31 shard days

Free

Read and write traffic

  • The traffic that is generated by uploading log data to Simple Log Service is 62 MB. This value is calculated by using the following formula: 10 MB/day × 20% × 31 days.

  • The traffic that is generated by using a Java program to subscribe to log processing events is 62 MB. This value is calculated by using the following formula: 10 MB/day × 20% × 31 days.

124 MB

Free

Storage space occupied by log data

  • The storage space that is occupied by log data is 62 MB. This value is calculated by using the following formula: 10 MB/day × 20% × 31 days.

  • The storage space that is occupied by indexes is 310 MB. This value is calculated by using the following formula: 10 MB/day × 31 days.

372 MB

Free

Index traffic of log data

If you enable the full-text indexing feature, 10 MB of index traffic is generated per day, and the index traffic for the current month is 310 MB.

310 MB

Free

Read and write operations

The number of times that log data is uploaded to Simple Log Service is counted.

Less than 1 million read and write operations

Free

Example 2

Website A receives 100 million requests per day. Simple Log Service generates a log of 200 bytes for each request. The total size of logs that are generated per day is approximately 18.6 GB. Website A uploads the logs to Simple Log Service for analysis. Two shards are used, and the data retention period is three days. In this example, the compression ratio is 5:1, and no free quota is provided.

The fee is USD 2.171985 per day. The following table describes the billing details.

Billable item

Description

Daily amount

Unit price

Daily fee

Read and write traffic

The traffic that is generated by uploading log data to Simple Log Service is 3.72 GB. This value is calculated by using the following formula: 18.6 GB × 20%.

3.72 GB

USD 0.045 per GB-day

USD 0.1674

Index traffic of log data

If you enable the full-text indexing feature, 20 GB of index traffic is generated per day. From the total amount, 1.4 GB of index traffic is generated for reserved fields.

20 GB

USD 0.0875 per GB-day

USD 1.75

Storage space occupied by log data

  • The storage space that is occupied by log data is 11.16 GB. This value is calculated by using the following formula: 18.6 GB/day × 20% × 3 days.

  • The storage space that is occupied by indexes is 60 GB. This value is calculated by using the following formula: 20 GB/day × 3 days.

71.16 GB

USD 0.002875 per GB-day

USD 0.204585

Read and write operations

The number of times that log data is uploaded to Simple Log Service is counted. The value is approximately 1 million.

1 million read and write operations

USD 0.03 per million operations per day

USD 0.03

Active shards

The peak traffic is 6 MB/s, which requires two shards.

2

USD 0.01 per shard-day

USD 0.02

Example 3

Application B generates 10 GB of time series data per day. The application sends 200,000 requests to upload the data to Simple Log Service. Two shards are used, and the data retention period is three days. In this example, the compression ratio is 5:1, and no free quota is provided.

The fee is USD 0.4054 per day. The following table describes the billing details.

Billable item

Description

Daily amount

Unit price

Daily fee

Read and write traffic

The traffic that is generated by uploading time series data to Simple Log Service is 2 GB. This value is calculated by using the following formula: 10 GB × 20%.

2 GB

USD 0.045 per GB-day

USD 0.09

Index traffic of time series data

Simple Log Service creates indexes for all fields.

10 GB

USD 0.02721 per GB-day

USD 0.2721

Storage space occupied by time series data

  • The storage space occupied by time series data is 6 GB. This value is calculated by using the following formula: 10 GB/day × 20% × 3 days.

  • The storage space that is occupied by indexes is 30 GB. This value is calculated by using the following formula: 10 GB/day × 3 days.

36 GB

USD 0.00048 per GB-day

USD 0.0173

Active shards

The peak traffic is 6 MB/s, which requires two shards.

2

USD 0.01 per shard-day

USD 0.02

Read and write operations

The number of times that time series data is uploaded to Simple Log Service is counted. The value is approximately 200,000.

200,000 read and write operations

USD 0.03 per million operations per day

USD 0.006

Example 4

Enterprise A stores 40 billion logs in Simple Log Service. Before the enterprise queries and analyzes the logs, the enterprise enables the Dedicated SQL feature. The following table describes the billing details when the enterprise uses the Dedicated SQL feature to perform a query and analysis operation.

Note

In this example, only the Dedicated SQL billable item is described.

Billable item

Description

CPU time per operation

Unit price

Fee per operation

Dedicated SQL

The CPU time that is consumed when you use the Dedicated SQL feature to perform a query and analysis operation is 3.6 seconds. For more information about how to obtain the CPU time, see How do I obtain the amount of CPU time that I use?

3.6 seconds/3600 = 0.001 hour

USD 0.05174 per core hour

USD 0.00005174

Pay-by-ingested-data

Example 1

Customer A writes 10 TB of data to Simple Log Service per day, stores the data in Simple Log Service for 30 days, and enables features such as data transformation, query and analysis, Scheduled SQL, intelligent alerting, and data shipping. The following table describes the billing details.

Billable item

Description

Daily amount

Unit price

Daily fee

Ingested data volume (raw data)

When data is uploaded to Simple Log Service, the ingested data volume is 10 TB.

10 TB

USD 0.061 per GB

USD 624.64

Data storage

The data retention period is 30 days.

In pay-by-ingested-data billing mode, you are not charged for data storage within 30 days after the data is written to Simple Log Service.

  • Hot storage: USD 0.002875 per GB-day

  • Infrequent Access (IA) storage: USD 0.000762 per GB-day

USD 0

Example 2

Customer B writes 10 TB of data to Simple Log Service per day with a compression ratio of 2:1, stores the data in Simple Log Service for 31 days, and enables features such as data transformation, query and analysis, Scheduled SQL, intelligent alerting, and data shipping. Data that is stored longer than 30 days is moved to the IA storage tier. The following table describes the billing details.

Billable item

Description

Daily amount

Unit price

Daily fee

Ingested data volume (raw data)

When data is uploaded to Simple Log Service, the ingested data volume is 10 TB.

10 TB

USD 0.061 per GB

USD 624.64

Data storage

The data retention period is 31 days, and 5 TB of data is stored in Simple Log Service.

In pay-by-ingested-data billing mode, you are not charged for data storage within 30 days after the data is written to Simple Log Service.

On the 31st day, you are charged for the 5 TB of data that is moved to the IA storage tier.

IA storage: USD 0.000762 per GB-day

USD 3.90144

Resource plan

A customer uses two shards to read data from and write data to Simple Log Service each day. The read and write traffic is 100 GB per day, the index traffic is 400 GB per day, and the storage usage of log data is 10,000 GB per day. The following tables describe the billing details.

Billable item

Description

Read and write traffic

100 GB × USD 0.045/GB = USD 4.5

Index traffic of log data

400 GB × USD 0.0875/GB = USD 35

Storage space occupied by log data

10000 GB × USD 0.002875 per GB-day = USD 28.75

Active shards

2 shards × USD 0.01 = USD 0.02

Note

If you set the Shards parameter to 2 when you create a Logstore, two shards are used each day. If a calendar month comprises 30 days, the monthly usage is 60 shard days.

Note

The actual prices of resource plans in the Simple Log Service console shall prevail.

Billing method

Pay-as-you-go

Resource plan (1-year subscription)

Cost saving

Monthly fee

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

You can purchase five 1-year subscription resource plans: two with 1,000 CUs per month and three with 20 CUs per month. The monthly fee is calculated by using the following formula:

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

If you purchase 1-year subscription resource plans, you can reduce costs by USD 583.1 per month. Formula: USD 2,048.1 - USD 1,465 = USD 583.1.

Yearly fee

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

You can purchase five 1-year subscription resource plans: two with 1,000 CUs per month and three with 20 CUs per month. The yearly fee is calculated by using the following formula:

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

If you purchase 1-year subscription resource plans, you can reduce costs by USD 6,997.2 per year. Formula: USD 24,577.2 - USD 17,580 = USD 6,997.2.