DataStream 2 delivery log details
DataStream 2 delivery logs provide detailed data about EdgeWorkers usage, including metrics you can use to optimize traffic and solve issues on your Akamai property. The stream collects log data under two data set fields you can choose when configuring DataStream 2, EdgeWorker usage and EdgeWorkers execution.
Refer to the Integrate DataStream 2 logs section for steps on how to configure DataStream 2 for EdgeWorkers.
EdgeWorkers usage
Usage information includes details about the EdgeWorker ID, version, event handler, reasons for turning an EdgeWorkers function off, returned errors and metrics such as initialization CPU, and initialization wall time for the event. The field returns the data in the following format:
//[EdgeWorker-Id]/[Version]/[Event Handler]/[Off
Reason]/[Logic Executed]/[Status]/[RevisionId]/[OverJavaScriptLogLimit]/[Continue on Error]/[onBotSegmentAvailable Stage]/#[Metrics]
Here's an example of the usage information output:
//4380/4.0/1/-/0/4/1-1/1/0/-/#1,2\//4380/4.0/4/-/0/4/1-1/0/0/-/#0,0\//4380/4.0/5/-/1/1/1-1/0/0/-/#0,0
For instructions on how to add EdgeWorkers usage information to a stream refer to the data set parameters in the DataStream 2 documentation.
| Field | Description |
|---|---|
| EdgeWorker Id | The identifier of the EdgeWorkers function. |
| Version | The EdgeWorker version. |
| Event Handler | The event handler used to execute the EdgeWorkers function. Returns one of the following values: |
| Off Reason | Indicates why the EdgeWorkers service was turned off. Returns one of the following values: |
| Logic Executed | Was the EdgeWorkers function successfully executed? Returns one of the following values: |
| Status | Indicates if the EdgeWorkers event handler execution returned an error. Returns one of the following values: All other error codes return a generic, unnamed or uncategorized value. |
| Revision ID | The Revision ID generated for a combined code bundle. If the code bundle does not include any child EdgeWorkers the output only contains a dash (-). The Revision ID is part of the Flexible composition feature. |
| Over JavaScript Log Limit | Indicates the request is hitting JavaScript log delivery limitations on the request. If the request has reached the rate limits , the request will be processed but no logs will be delivered. Returns one of the following values: |
| Continue on error | Contains Continue on error related messages. 0 – Off: Feature not enabled in Property Manager. |
| onBotSegmentAvailable Stage | The onBotSegmentAvailable handler can run at different execution points. This value indicates in which stage of processing the onBotSegmentAvailable handler ran. - - onBotSegmentAvailable did not run |
| Metrics | Metrics about the execution of the event handler, separated by a comma (,): Initialization CPU Time - The amount of CPU time, in milliseconds, consumed during the event handler initialization. |
EdgeWorkers execution
Execution information includes the fields described in the table below, separated by a colon ‘:’.
[Stage Information]:[EdgeWorker Id]:[Process Time]:[Total Time]:[Stage Time]:[Used Memory]:[Server Flow]:[Error Status Code]:[HTTP Status Change]:[Internal 1]:[Tier Id]:[Internal 2]:[Internal 3]:[Internal 4]:[Internal 5]
Here's an example of the execution info:
c:4380:7:161:162:161:n:::12473:200:0::::|C:4380:3:0:4:0:n:::6967:200:0::::|R:4380:20:99:99:1:n:::35982:200:0::::
For instructions on how to add EdgeWorkers execution information to a stream refer to the data set parameters in the DataStream 2 documentation.
| Field | Description |
|---|---|
| Stage information | The stage during which the EdgeWorkers function was executed. Returns one of the following values: |
| EdgeWorker ID | The identifier of the EdgeWorkers function. |
| EdgeWorker process time (ms) | The amount of time, in milliseconds, it took to process the EdgeWorkers function. |
| EdgeWorker total time (ms) | The total amount of time used, in milliseconds, it took for the EdgeWorkers function to execute. |
| Total stage time (ms) | The total amount of time used, in milliseconds, it took for the EdgeWorkers function to execute. This value includes any overhead associated with constructing the EdgeWorkers request beyond running the JavaScript code. |
| Used memory (KB) | The amount of memory used, in kilobytes, it took for the EdgeWorkers function to execute. |
| Akamai edge server flow | Akamai edge server flow status during the execution. Returns one of the following values: |
| Error Status Code | The error status code when a problem has occurred processing the EdgeWorkers request. This field will not be populated unless an error has occurred. If the Returns one of the following values: |
HTTP status change when response is generated with respondWith API | The status provided as part of the respondWith() JavaScript API:respondWith(status, headers, body, [deny_reason]) |
| Internal Field 1 | This field is for Akamai internal use only. |
| Tier ID used for processing this request | The resource tier of the EdgeWorker ID, 200 for Dynamic Compute, 280 for Enterprise Compute, or 100 for Basic Compute. |
| Internal field 2 | This field is for Akamai internal use only. |
| Internal field 3 | This field is for Akamai internal use only. |
| Internal field 4 | This field is for Akamai internal use only. |
| Internal field 5 | This field is for Akamai internal use only. |
Updated 18 days ago
