All Products
Search
Document Center

Edge Security Acceleration:Instant Logs

Last Updated:Sep 09, 2026

Instant Logs is a lightweight log service that lets you view Functions and Pages logs in real time from the console. Use the log data to monitor function execution and make adjustments to Functions and Pages accordingly.

Limitations

  • Each Functions and Pages instance supports only one active monitoring window at a time, with a maximum duration of 60 minutes per session.

  • Instant Logs stores up to 40 records per session in reverse chronological order. When the buffer is full, new records overwrite the oldest ones.

Start monitoring

  1. Log on to the ESA console, and in the navigation pane on the left, choose Edge Computing and AI > Functions and Pages.

  2. On the Functions and Pages page, click the target function or Pages.

  3. Select Logs > Instant Logs > Start Monitoring to start collecting logs.

    • Click image to view the detailed fields for a specific log record.

    • Click image in the upper-right corner to download the log data as a JSON file.

    • If you switch function pages during monitoring, monitoring stops and the history is cleared. Click Start Monitoring again to restart Instant Logs.

Stop monitoring

  1. Log on to the ESA console, and in the navigation pane on the left, choose Edge Computing and AI > Functions and Pages.

  2. On the Functions and Pages page, click the target function or Pages.

  3. Select Logs > Instant Logs, and click Stop Monitoring, image, or image to stop the monitoring window and log collection.

    Note

    The collected log history remains visible on the page. Clicking Start Monitoring again appends new logs to the existing history.

Fields

Field

Type

Description

ClientRequestID

string

The unique ID of the main client request.

LogTimestamp

Timestamp ISO8601

The timestamp when the log event was generated, in ISO 8601 format. Example: 2024-01-01T00:00:00+08:00.

SubRequestID

string

The unique ID of the sub-request.

SubRequestStatus

int

The status of the sub-request.

SubRequest2xxCount

int

The number of sub-requests that returned a 2xx status code.

SubRequest3xxCount

int

The number of sub-requests that returned a 3xx status code.

SubRequest4xxCount

int

The number of sub-requests that returned a 4xx status code.

SubRequest5xxCount

int

The number of sub-requests that returned a 5xx status code.

SubRequestOtherCount

int

The number of sub-requests that returned other status codes.

CodeVersion

string

The version number of the code.

ConsoleLog

string

Custom log messages generated by the console.alert() call in your JavaScript code.

CPUTime

int

The total CPU time consumed by the request, in microseconds.

DurationTime

int

The total execution time of the request within the EdgeRoutine, including sub-request wait time and I/O time. Unit: milliseconds.

ErrorCode

int

The error code for code execution. A value of 0 indicates no error.

ErrorMessage

string

The error description corresponding to the ErrorCode.

EventType

string

The event type that triggered the function. Currently, only HTTP events are supported.

ResponseSize

int

The total response size, in bytes.

ResponseStatus

int

The response status code.

RoutineName

string

The function name.

RoutineSpec

string

The specifications of the EdgeRoutine.

ClientASN

string

The Autonomous System Number (ASN) resolved from the client IP address.

ClientIP

string

The IP address of the client.

ClientISP

string

The ISP resolved from the client IP address.

ClientProxyIP

string

The proxy IP address of the client.

ClientRegionCode

string

The ISO 3166-2 code for the client's region, resolved from the client IP address.

ClientSSLCipher

string

The SSL cipher suite used by the client.

ClientSSLProtocol

string

The SSL protocol version used by the client.

ClientSrcPort

int

The source port used by the client to connect to the node.

ClientXRequestedWith

string

The value of the X-Requested-With HTTP header from the client request.

ClientZoneCode

string

The ISO 3166-1 alpha-2 country code for the client's location, resolved from the client IP address.

ClientRequestBytes

int

The size of the client request, in bytes.

ClientRequestHeaderRange

string

The value of the Range header in the client request. Example: bytes=0-100.

ClientRequestHost

string

The host in the client request.

ClientRequestMethod

string

The HTTP method used in the client request.

ClientRequestPath

string

The request path from the client.

ClientRequestProtocol

string

The protocol used in the client request.

ClientRequestReferer

string

The referer header from the client request.

ClientRequestScheme

string

The URL scheme of the client request.

ClientRequestURI

string

The URI of the client request.

ClientRequestUserAgent

string

The user agent string from the client request.

EdgeResponseStatusCode

int

The status code that the ESA node returns to the client.