This topic describes the log fields for different types of real-time logs at the account and site levels.
Account level
Edge function logs
Category | Field Name | Data Type | Description |
General | AccountID | string | Account ID |
ClientRequestHost | string | The | |
ClientRequestID | string | The unique identifier of the main client request. | |
ClientRequestMethod | string | The | |
ClientRequestPath | string | The path of the main client request. | |
LogTimestamp | Timestamp ISO8601 | The timestamp when the log was generated. For example: | |
SubRequest | SubRequestID | string | The unique identifier of the subrequest. |
FetchStatus | string | The status returned for a request made using an edge function. | |
KvStatus | string | The status returned for a request made using EdgeKV. | |
CacheStatus | string | The cache hit status obtained for a request made using the Cache API. | |
SubRequest2xxCount | int | The number of subrequests with a 2xx status code. | |
SubRequest3xxCount | int | The number of subrequests with a 3xx status code. | |
SubRequest4xxCount | int | The number of subrequests with a 4xx status code. | |
SubRequest5xxCount | int | The number of subrequests with a 5xx status code. | |
SubRequestOtherCount | int | The number of subrequests with other status codes. | |
EdgeRoutine | CodeVersion | string | The code version number. |
ConsoleLog | string | Custom logs printed by calling | |
CPUTime | int | The CPU time consumed by the entire request. Unit: | |
Duration | int | The actual execution time of the request in the edge function, including subrequest wait time and I/O time. Unit: | |
ErrorCode | int | The code execution error code. | |
ErrorMessage | string | The description of the | |
EventType | string | The type of event that triggered the function. | |
ResponseSize | int | The total size of the response. Unit: | |
ResponseStatus | int | The status code of the response. | |
RoutineName | string | The function name. | |
RoutineSpec | string | The specifications of the EdgeRoutine. |
Edge container logs
Category | Field Name | Data Type | Description |
General | AccountID | string | Account ID |
ApplicationID | string | Application ID | |
ContainerLog | string | The log information output by the containerized application. | |
DataSource | string | The collection source. Current sources include standard output and log output. | |
DataPath | string | The collection path. For example: | |
LogTimestamp | Timestamp ISO8601 | The timestamp when the log was generated. For example: | |
Operator | string | The carrier information of the POP that generated the log. For example, | |
Region | string | The region information of the POP that generated the log. For example, | |
VersionID | string | Version ID |
Website level
Access and origin fetch logs
Category | Field Name | Data Type | Description |
General | BotTag | string | Records the bot type of the client request:
|
ClientRequestID | string | The unique identifier of the client request. | |
EdgeServerID | string | The unique identifier of the ESA POP server that the client accessed. | |
EdgeServerIP | string | The IP address of the ESA POP that the client accessed. | |
EdgeStartTimestamp | Timestamp ISO8601 | The timestamp when the ESA POP received the client request. For example: | |
EdgeEndTimestamp | Timestamp ISO8601 | The timestamp when the ESA POP finished sending the response to the client. For example: | |
JA3Hash | string | The hash value of the client's JA3 fingerprint. | |
JA4Hash | string | The hash value of the client's JA4 fingerprint. | |
SiteName | string | Site name | |
SmartRoutingStatus | string | The status of the smart routing feature. | |
TlsHash | string | The MD5 hash value that describes the SSL/TLS client fingerprint. | |
Client | ClientASN | string | The Autonomous System Number (ASN) parsed from the client IP address. |
ClientCountryCode | string | The ISO-3166 Alpha-2 code parsed from the client IP address. | |
ClientIP | string | The IP address of the client that established a connection with the ESA POP. | |
ClientISP | string | The carrier information parsed from the client IP address. | |
ClientRegionCode | string | The ISO-3166-2 code parsed from the client IP address. | |
ClientSSLCipher | string | The SSL encryption suite of the client. | |
ClientSSLProtocol | string | The SSL protocol version of the client, with | |
ClientSrcPort | int | The port of the client that established a connection with the ESA POP. | |
ClientXRequestedWith | string | The | |
ClientRequest | ClientRequestBytes | int | The size of the client request. Unit: |
ClientRequestHeaderRange | string | In a client request, the | |
ClientRequestHost | string | The | |
ClientRequestMethod | string | The | |
ClientRequestPath | string | The path of the client request. | |
ClientRequestProtocol | string | The protocol of the client request. | |
ClientRequestReferer | string | The | |
ClientRequestQuery | string | The | |
ClientRequestScheme | string | The | |
ClientRequestURI | string | The | |
ClientRequestUserAgent | string | The | |
Edge | EdgeCacheStatus | string | The cache status of the request. |
EdgeRequestHost | string | The | |
EdgeResponseBodyBytes | int | The size of the response | |
EdgeResponseBytes | int | The size of the response returned from the ESA POP to the client. Unit: | |
EdgeResponseCompressionAlgo | string | The compression algorithm of the response from the ESA POP. | |
EdgeResponseCompressionRatio | float | The compression ratio of the response from the ESA POP. | |
EdgeResponseContentType | string | The | |
EdgeResponseStatusCode | int | The status code returned from the ESA POP to the client. | |
EdgeResponseTime | int | The total time from when the ESA POP receives the client request to when the last byte of the response is sent to the client. Unit: | |
EdgeTimeToFirstByteMs | int | The time from when an ESA node receives a client request to when the ESA node returns the first byte of the response to the client, in | |
Origin | OriginDNSResponseTimeMs | int | The time taken to receive the DNS resolution response from the origin server. |
OriginIP | string | The origin IP address for the back-to-origin request. A value of | |
OriginSSLProtocol | string | The version of the SSL protocol that is used for back-to-origin requests. A value of | |
OriginTCPHandshakeDurationMs | int | The time taken to complete the TCP handshake when requesting the origin server. | |
OriginTLSHandshakeDurationMs | int | The time taken to complete the TLS handshake when requesting the origin server. | |
OriginResponse | OriginResponseDurationMs | int | The time to first byte from the origin server. |
OriginResponseHTTPExpires | string | The | |
OriginResponseHTTPLastModified | string | The | |
OriginResponseHeaderRange | string | The | |
OriginResponseStatusCode | int | The status code of the origin server's response. | |
Security | SecAction | string | The final protection action performed for the request. |
SecActions | string | All protection actions performed for the request. | |
SecRuleID | string | The ID of the final protection rule executed for the request. | |
SecRuleIDs | string | The IDs of all protection rules executed for the request. | |
SecSource | string | The final protection rule executed for the request. | |
SecSources | string | All protection rules executed for the request. |
Mitigation logs
Category | Field Name | Data Type | Description |
General | Action | string | The protection action performed:
|
ClientRequestID | string | The unique identifier of the client request. | |
Datetime | Timestamp ISO8601 | The timestamp when the ESA POP received the client request. For example: 2024-01-01T00:00:00+08:00. | |
JA3Hash | string | The hash value of the client's JA3 fingerprint. | |
JA4Hash | string | The hash value of the client's JA4 fingerprint. | |
ManagedRuleType | string | The specific protection rule type corresponding to the managed rule:
| |
RuleID | string | The ID of the matched protection rule. | |
RuleType | string | The specific protection type corresponding to the security rule:
| |
Source | string | The matched protection rule:
| |
TlsHash | string | The MD5 hash value that describes the SSL/TLS client fingerprint. | |
Client | ClientASN | string | The Autonomous System Number (ASN) parsed from the client IP address. |
ClientCountryCode | string | The ISO-3166 Alpha-2 code parsed from the client IP address. | |
ClientIP | string | Connect IP: The IP address of the client that established a connection with the ESA POP. | |
ClientISP | string | The carrier information parsed from the client IP address. | |
ClientRequest | ClientRequestHost | string | The |
ClientRequestMethod | string | The | |
ClientRequestPath | string | The path of the client request. | |
ClientRequestProtocol | string | The protocol of the client request. | |
ClientRequestReferer | string | The | |
ClientRequestQuery | string | The | |
ClientRequestScheme | string | The | |
ClientRequestURI | string | The | |
ClientRequestUserAgent | string | The | |
Edge | EdgeResponseContentType | string | The |
EdgeResponseStatusCode | int | The status code returned from the ESA POP to the client. | |
OriginResponse | OriginResponseStatusCode | int | The status code of the origin server's response. |
Layer 4 proxy logs
Category | Field Name | Data Type | Description |
General | BlockRuleID | string | The ID of the rule that was hit and blocked the request. An empty value indicates that the request was not blocked. |
ConnectTimeStamp | Timestamp ISO8601 | The timestamp of the connection establishment. For example: | |
DisconnetTimeStamp | Timestamp ISO8601 | The timestamp of the disconnection. For example: | |
DomainName | string | The domain name used to create the application instance. | |
EdgeServerIP | string | The IP address of the ESA POP that the client accessed. | |
IpFirewall | bool | Indicates whether the IP access rule is enabled. | |
LogTimeStamp | Timestamp ISO8601 | The timestamp when the log was generated. For example: | |
ProxyProtocol | string | The proxy protocol version. Valid values include | |
SessionID | string | The globally unique stream identifier. | |
SiteName | string | Site name | |
Status | int | The status code at the end of the session. | |
Client | ClientASN | string | The Autonomous System Number (ASN) parsed from the client IP address. |
ClientBytes | int | The number of data bytes received from the client. Unit: | |
ClientCountryCode | string | The ISO-3166 Alpha-2 code parsed from the client IP address. | |
ClientIP | string | The IP address of the client that established a connection with the ESA POP. | |
ClientISP | string | The carrier information parsed from the client IP address. | |
ClientMatchedIpFirewall | string | The type of the matched IP access rule. | |
ClientPort | int | The client port. | |
ClientProto | string | The data transmission protocol of the client. | |
Origin | OriginBytes | int | The number of data bytes received from the origin server. Unit: |
OriginIP | string | The IP address of the origin server. | |
OriginPort | int | The origin server port. | |
OriginProto | string | The data transmission protocol of the origin server. |
DNS logs
Category | Field Name | Data Type | Description |
General | DestIP | string | The IP address of the name server (NS). |
EDNSSubnet | string | The IP address information of the EDNS Client Subnet (ECS) forwarded by the recursive resolver. | |
ProcessTime | int | The processing time of the query. Unit: | |
Protocol | string | The transport protocol. | |
QueryName | string | The name of the query. | |
QueryType | string | The query type. | |
ResponseCode | string | The response result of the query. | |
SiteName | string | Site name | |
SourceIP | string | The IP address of the local DNS (LDNS). | |
Timestamp | string | The timestamp when the query occurred. For example: |