The instant logs feature is a real-time logging tool that collects and displays Edge Routine execution information. It offers a lightweight and user-friendly way to view logs in real time within the Edge Security Acceleration (ESA) console, helping you debug routine scripts and get execution details.
Before you begin
You can have only one active monitoring session for a routine. Each session can last up to 60 minutes.
Instant logs can store up to 40 records at a time. The records are displayed in reverse chronological order, and newer logs overwrite older logs once the limit is reached.
Start monitoring and view logs
Log on to the ESA console, and in the left-side navigation pane, choose .
On the Edge Routine page, find the routine that you want to manage, and click the routine name or View Details in the Actions column.
On the routine details page, click . The instant logs start to be collected.
Click the expand
button to view details of a log entry.Click the download
button to download all the logs in JSON format.
Stop monitoring
Log on to the ESA console, and in the left-side navigation pane, choose .
On the Edge Routine page, find the routine that you want to manage, and click the routine name or View Details in the Actions column.
On the routine details page, click .
The following actions stop the monitoring:
Clicking Stop Monitoring. Monitoring history is kept.
Clicking the expand
or download
button. Monitoring history is kept.Adding a filter. Monitoring history is cleared.
Switching to another feature page. Monitoring history is cleared.
Reference
The following table shows fields in the instant log:
Field | Type | Description |
ClientRequestID | String | The unique ID of the client request. |
LogTimestamp | Timestamp ISO8601 | The timestamp that indicates when the log was generated. Example: 2024-01-01T00:00:00+08:00. |
SubRequestID | String | The unique ID of the subrequest. |
SubRequestStatus | Int | The status codes of subrequests. |
SubRequest2xxCount | Int | The number of subrequests whose status code is 2xx. |
SubRequest3xxCount | Int | The number of subrequests whose status code is 3xx. |
SubRequest4xxCount | Int | The number of subrequests whose status code is 4xx. |
SubRequest5xxCount | Int | The number of subrequests whose status code is 5xx. |
SubRequestOtherCount | Int | The number of subrequests with other status codes. |
CodeVersion | String | The version number of the code. |
ConsoleLog | String | The custom logs displayed by invoking the console.alert() function in the JavaScript code. |
CPUTime | Int | The CPU time that the request consumes. Unit: microsecond. |
DurationTime | Int | The actual execution time of the request. The execution time includes the subrequest wait time and I/O wait time. Unit: millisecond. |
ErrorCode | Int | The error code returned. A value of 0 indicates that no error occurs. |
ErrorMessage | String | The error message that corresponds to error code. |
EventType | String | The type of the routine trigger event. Only HTTP is supported. |
ResponseSize | Int | The response size. Unit: bytes. |
ResponseStatus | Int | The status code of the response. |
RoutineName | String | The name of the routine. |
RoutineSpec | String | The specification of the routine. |
ClientASN | String | The autonomous system number (ASN) parsed from the client IP address. |
ClientIP | String | The client IP address. |
ClientISP | String | The ISP information parsed from the client IP address. |
ClientProxyIP | String | The proxy IP address of the client. |
ClientRegionCode | String | The ISO-3166-2 code parsed from the client IP address. |
ClientSSLCipher | String | The SSL cipher suite of the client. |
ClientSSLProtocol | String | The SSL protocol version of the client. |
ClientSrcPort | Int | The port used to establish a connection between the client and ESA point of presence (POP). |
ClientXRequestedWith | String | The X-Requested-With header carried by the client request. |
ClientZoneCode | String | The ISO-3166 Alpha-2 code parsed from the client IP address. |
ClientRequestBytes | Int | The size of the client request. Unit: bytes. |
ClientRequestHeaderRange | String | The value of the Range header carried by the client request. Example: bytes=0-100. |
ClientRequestHost | String | The origin server of the client request. |
ClientRequestMethod | String | The HTTP method that is used by the client request. |
ClientRequestPath | String | The path information contained in the client request. |
ClientRequestProtocol | String | The protocol information contained in the client request. |
ClientRequestReferer | String | The Referer information contained in the client request. |
ClientRequestScheme | String | The Scheme information contained in the client request. |
ClientRequestURI | String | The URI information contained in the client request. |
ClientRequestUserAgent | String | The User-Agent information contained in the client request. |
EdgeResponseStatusCode | Int | The status code returned by the ESA POP to the client. |