EdgeOne provides the real-time logging feature to collect and ship access logs in real time, allowing for fast retrieval and analysis of log data.
You can access log data to view or analyze business conditions in multiple dimensions in real time.
Activate CLS and grant EdgeOne access to create free logsets.
It’s recommended to enable real-time logging by using a root account. If you are a sub-account or collaborator, you need to obtain the required permission.
Real-time logs can only be shipped to CLS for now.
a-z, A-Z, 0-9, _, -.
You need to add all subdomain names in to one push task.
Click Create to create a logset in the selected region if necessary.
a-z, A-Z, 0-9, _, -.
You can suspend a log push task to stop shipping logs to the specified log topic.
You can enable a log push task to ship logs to the specified log topic.
Log search supports various search and analysis methods and chart types. For more information, see Cloud Log Service.
EdgeOne logs can be searched for by push task. On the Real-time logs page, select the target push task and click Search to enter the log search page.
For more logset managing operations, such as renaming a logset, you can go to the CLS console.
A logset is a project management unit in CLS. It is used to distinguish between logs of different projects and corresponds to a set. An EdgeOne logset has the following basic attributes:
A log topic is the basic management unit in the Tencent Cloud log service (CLS). One logset can contain multiple log topics, and one log topic corresponds to one type of application or service. We recommend you collect similar logs on different machines into the same log topic. For example, if a business project has three types of logs: operation log, application log, and access log, you can create a log topic for each type of log.
The log service system manages different log data based on different log topics. Each log topic can be configured with different data sources, index rules, and shipping rules. Therefore, a log topic is the basic unit for configuring and managing log data in the log service. You need to configure corresponding rules first after creating a log topic before you can perform log collection, search, analysis, and shipping.
Log topic features include:
- For more information, see CLS documentation.
- Each real-time log push task ships logs of the selected subdomains to the corresponding log topic in CLS.
|RequestID||String||Unique ID of the client request|
|ClientCountry||string||The two-digit country code (ISO 3166-2) of the client location.|
|RequestTime||int||Client request time (a UNIX timestamp in seconds)|
|RequestHost||string||Client request host|
|RequestBytes||int||Client request size, which includes the size of the file itself and request headers|
|RequestMethod||string||HTTP client request method|
|RequestUrl||string||Client request URL|
|RequestUrlQueryString||string||A query string that is carried in the client request URL|
|RequestUA||string||Client request User-Agent|
|RequestRange||string||Client request Range|
|RequestReferer||string||Client request Referer|
|RequestProtocol||string||Client request HTTP protocol: HTTP, HTTPS, and HTTP/3|
|RemotePort||int||Port connecting the client and nodes under the TCP protocol. This field will be "-" if the port does not exist.|
|EdgeCacheStatus||string||Whether the client request hits the node cache: HIT, MISS, and Dynamic|
|EdgeResponseStatusCode||int||Response status code returned to the client by the nodes|
|EdgeResponseBytes||int||Response size returned to the client by the nodes|
|EdgeResponseTime||int||The period from the point when the request is initiated from the client and the point when the client receives response from the server|
In the EdgeOne console, you can only see log topics created by using the EdgeOne role.
It may be because your log data volume is large, but the corresponding log topic has only a single partition, or automatic splitting is disabled for it. When you create a log topic, the default number of partitions is 1, and automatic splitting is enabled by default.
Yes. You can delete the logsets in the CLS console. Note that to delete a logset, you need to delete all its log topics first. The deletion will be synced to EdgeOne.