After you enable real-time log delivery, you are charged for log entries that are delivered to the specified service.

Feature overview

When Alibaba Cloud CDN is used to fetch resources such as images, text, and videos, Alibaba Cloud CDN generates a large amount of log data. The log data is collected in real time. Alibaba Cloud CDN is integrated with Log Service to deliver log data to Log Service in real time for further analysis. Then, you can use the analysis results to troubleshoot issues and make business decisions at the earliest opportunity.

For information about Log Service, see What is Log Service?.

Usage notes

The actual traffic amount that you query by using the monitoring and usage analytics feature or the usage statistics feature in the Alibaba Cloud CDN console or Dynamic Route for CDN (DCDN) console or by calling API operations is different from the traffic amount that is logged. In most cases, the actual traffic amount that you query is 1.1 times the traffic amount that is logged. For more information, see Why is the traffic amount found by using the monitoring and usage analytics feature or the usage statistics feature different from the traffic amount that is logged?

Differences between real-time log shipping and log download

  • Log latency

    The real-time log delivery feature collects log data in real time, and logs are generated within three minutes after an event occurs. Offline log data is generated within 24 hours.

  • Log analysis

    The real-time log delivery feature integrates the log storage and log analysis capabilities of Log Service. The feature provides four preset analysis report templates, including templates for basic data, error analysis, frequently requested resources, and user analysis. The feature also supports custom log analysis policies. In comparison, the offline log feature only allows you to ship logs to Object Storage Service (OSS), and does not integrate log analysis capabilities.

Benefits

  • Low latency

    Log data is generated within three minutes after an event occurs. This allows you to analyze access logs, identify issues, and resolve them in a timely manner.

  • End-to-end

    Traditional offline log analysis solutions typically require you to first download logs, upload them to a data warehouse, and subsequently clean the data and provide a definition for the data model. Then only will you be able to perform data analysis. This results in high labor costs and extends the time required for analysis. The real-time log delivery feature integrates log storage and log analysis capabilities of Log Service to eliminate the tedious process of the traditional offline log analysis.

Billing rules

You are charged for real-time log delivery based on the number of log entries that are delivered to the specified service. Log delivery fees do not include storage fees or data analysis fees.

Billable itemBilling ruleBilling methodBilling cycle
Log entries After you enable real-time log delivery, you are charged for log entries that are delivered to the specified service Pay-as-you-go You are charged on an hourly basis. Bills are generated approximately 3 to 4 hours after the end of each billing cycle.

Scenarios

You can use real-time log delivery to troubleshoot issues that may occur when you use Alibaba Cloud CDN to accelerate the delivery of your content. You can also use the collected log data to analyze user access statistics. Alibaba Cloud CDN provides the following types of reports:
Log analysis reportDescription
Basic dataThis report provides information about the overall performance of Alibaba Cloud CDN and the user access efficiency, such as hit ratio, access latency, and download speed. It also allows you to quickly identify and handle service quality issues.
Access errorsThis report helps you quickly locate issues when application access exceptions occur, such as URI issues, origin server failures, unavailable POPs, regional network issues, and Internet service provider (ISP) network issues.
Frequently requested resourcesThis report provides information about frequently requested resources and helps you gain insight into popular domain names and URIs, as well as where most of your customers are concentrated, and what ISPs they use. This data is also useful in helping you gain a better understanding into your business and whether events are attracting the expected traffic volume, or if traffic during peak hours are higher or lower than expected. This information can help you make adjustments to the overall operations of your business.
User compositionThis report provides information about the user composition of your website, including the client or device, general location, and ISPs of the users. You can analyze top users with most visits or most downloads.

For information about real-time log delivery, see Configure real-time log delivery.