You can configure Akamai's DataStream 2 reporting service to provide real-time logs that contain details about EdgeWorkers usage and execution. Once you enable the DataStream 2 behavior, you can configure a set of streams that you want to report.
To learn more, refer to the the DataStream 2 reporting service documentation.
Follow this workflow to create a stream with EdgeWorkers data. You can also review the Create a stream section in the DataStream 2 guide for more details.
To add EdgeWorkers data to DataStream logs, you need to create and configure a stream for at least one property in your Akamai account. Make sure that you have DataStream enabled in your contract. Contact your Akamai account representative if you need help or more information.
In Akamai Control Center, go to ☰ > COMMON SERVICES > DataStream.
Click Create stream, fill out the necessary fields and choose up to 100 active properties that belong to the same product.
If there are no properties in the list, you may need to create or activate one. See Create a property in the Property Manager guide for more information.
On the Data sets tab, choose the log format, either Structured or JSON, and the data fields that you want to include in the log files. Go to EdgeWorkers information, and check EdgeWorkers usage and EdgeWorkers execution to log EdgeWorkers data. Both fields require that the EdgeWorkers behavior is enabled in the property. You can view a list of the data set parameters for both data set fields.
On the Destinations tab, select the destination for your DataStream logs, and specify how often to deliver them. See Stream logs to a destination for configuration details for each available destination.
On the Summary tab, review the stream details. Select Activate stream upon saving or leave the box unchecked to activate it later.
Go to Property Manager and enable the DataStream behavior for each of the properties you chose in step two. Note that data is only logged for a property when the stream is active and the DataStream behavior is enabled.
The stream activates in about 60 minutes after you save the configuration.
After you start receiving data, see DataStream 2 logs for details on how to interpret log lines with EdgeWorkers fields.
Updated over 1 year ago