Help Center> Live> User Guide> Log Management

Log Management

The Logs page displays detailed logs about the network users' access to all streaming domain names deployed in the new version of Live. You can download logs of a specific period to analyze the access to your service resources.

Log records are for data analysis and reference only. Service fees are charged based on bills.

Notes

This function is unavailable in CN North-Beijing1.

Log Download

  • You can download logs of the latest 90 days.
  • You can query and download logs in a time span of up to seven days. To query and download logs in a longer time span, perform the operations multiple times.

Log Description

Log package name format: Streaming domain name_Log generation time.log.gz

Log generation rule: By default, logs are collected at an interval of 5 minutes. If no request is sent to a domain name, no log data package is generated. Generally, the complete log file can be obtained four hours after the live stream pushing is completed.

Log format: [time_local]|play_domain|client_ip|cdn_ip|url|http_code|cache_hit|scheme|method|period_bytes_sent|period_duration|ua|refer|-

If a field is not involved or is empty, the value of this field will be a hyphen (-). If the field information contains spaces, each space must be enclosed in double quotation marks ("").

Log example

[02/Nov/2020:17:05:03 +0800]|pullexample.huaweicloud.com|49.7.47.195|42.81.212.218|http://pullexample.huaweicloud.com/stage/stream-107400941191299211.flv|404|MISS|HTTP|GET|0|4|Lavf/58.12.100|-

Table 1 describes the fields.

Table 1 Log fields

Field Name

Field Description

Example

time_local

Local time in the common format, which is used to record the time when statistics are collected.

[13/Jun/2016:14:50:17 +0800]

play_domain

Accelerated domain name added to CDN.

hw.play.xxx.com

client_ip

IP address of the viewer client.

10.1.1.1

cdn_ip

IP address of the CDN node accessed by the viewer.

10.1.1.2

url

Complete access URL.

http://hw.play.xxx.com/live/1423787836-1423787836-6115122192062611456-2847699128-10057-A-0-1.m3u8?wsSecret=9045e7b99db58475627d33e99eb64fc1&wsTime=5f03baeb&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctyp=huya_tars&fs=bgct&&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=xxx&sphd=264_*

http_code

HTTP status code.

200

cache_hit

Cache hit status.
  • HIT
  • MISS

HIT

scheme

Access protocol.
  • HTTP
  • HTTPS
  • RTMP

HTTP

method

HTTP method.

GET

period_bytes_sent

Number of bytes sent in a statistical period. The statistical period is the value of period_duration.

2030

period_duration

Statistical period, in seconds. The value is accurate to milliseconds.

60.000

ua

User agent information.

Mozilla/5.0 (compatible; AhrefsBot/5.0; +http://ahrefs.com/robot/)

refer

Referer information.

-

Downloading Logs

  1. Log in to the Live console.
  2. In the navigation pane, choose Logs.
  3. Specify the domain name and time.

    The system displays all logs generated in the specified time. A log file is generated every 5 minutes.

    Figure 1 Logs

  4. Click Download in the Operation column in the row containing the log package to be downloaded and download the log package to your local PC.