Observability
  • Log Service
    • Overview
    • Real-time Logs
      • Real-time Logs Overview
      • Push to Tencent Cloud CLS
      • Push to AWS S3-Compatible COS
      • Push to HTTP Server
    • Offline Logs
    • Related References
      • Field description
        • L7 Access Logs
        • L4 Proxy Logs
        • Edge Function Running Logs
      • Real-Time Log Push Filter Conditions
      • Custom Log Push Fields
      • Customizing Log Output Formats
  • Data Analysis
    • Overview
    • Analytics
    • Web Security Analysis
    • Traffic Analysis
    • Cache Analysis
    • Security Analysis
      • Site Security Overview
      • Web Security Analysis
    • L4 Proxy
    • DNS Resolution
    • Related References
      • Sampling Statistics
      • How to use filter condition
      • How to Modify Query Time Range
      • How to Export Statistical Data and Reports
  • AlarmService
    • Custom Statistical Metrics

Edge Function Running Logs

Field Description

Field Name
Data Type
Description
EdgeFunctionName
String
Name of the triggered edge function.
RequestHost
String
Host of the client request (the domain name of the main request).
RequestID
String
Unique ID of the client request (UUID of the main request).
EventTimestamp
Integer
Timestamp of the function trigger. Format: UNIX, accurate to ms.
Logs
Array[object]
Specified information printed by Users in the JS code using the console.log() method.
Outcome
String
Whether the function execution is successful, values are:
ok: no exceptions or errors
exception: There are exceptions or errors. For error details, please refer to the Exceptions field.
Exceptions
Array[object]
Details of exceptions and errors encountered during function execution.
CpuTime
Integer
CPU time consumed, unit: microsecond.
WallTime
Integer
Wall clock time, the time elapsed from function trigger to completion, unit: microsecond.

Log Examples

Below is an example of a single edge function runtime log by default. You can customize the EdgeOne log output format according to the specific requirements of the downstream log analysis system. For more details, see Customizing Log Output Format.
{
"WallTime": 125221,
"RequestID": 8254903099116445190,
"EventTimestamp": 1727251229247,
"EdgeFunctionName": "testtracelog-zone-2rdnikn6zjck-251255070",
"Outcome": "ok",
"RequestHost": "www.example.com",
"Exceptions": [],
"Logs": [
{
"level": "INFO",
"message": "test log from function",
"timestamp": 1727251229247
}
],
"CpuTime": 547
}