> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://akamai.ferndocs.com/edge-workers/datastream-2-integration/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://akamai.ferndocs.com/_mcp/server. # DataStream 2 logs You can configure Akamai's [DataStream 2](https://techdocs.akamai.com/datastream2/docs) reporting service to provide real-time logs that contain details about EdgeWorkers usage and execution. Once you [enable the DataStream 2 behavior](https://techdocs.akamai.com/datastream2/docs/enable-datastream-behavior), you can configure a set of streams that you want to report. DataStream 2 metrics provide nearly real-time visibility into the performance of your EdgeWorkers functions. This information can help you design and refine the JavaScript code you execute at the edge. You can also create a Data Stream 2 stream to deliver JavaScript Logging for an EdgeWorkers function. To learn more, refer to the [Use DataStream 2 to deliver JavaScript logs](ds2-javascript-logging.md) tutorial. # Configure a Delivery stream Follow this workflow to create a stream with EdgeWorkers data. You can also review the [Create a stream](https://techdocs.akamai.com/datastream2/docs/create-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. 1. In Akamai Control Center, go to ☰ > COMMON SERVICES > DataStream. 2. Click **Create stream** and select **EdgeWorkers** from the drop-down. Type in a name and select the Group to create the stream in. 3. On the **Data sets** tab, choose the log format, either Structured or JSON. 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](datastream2-reports.md) for both data set fields. 4. On the **Destinations** tab, select the destination for your DataStream logs, and specify how often to deliver them. See [Stream logs to a destination](https://techdocs.akamai.com/datastream2/docs/stream-logs) for configuration details for each available destination. 5. On the **Summary** tab, review the stream details. Select **Activate stream upon saving **or leave the box unchecked to activate it later. 6. 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](datastream2-reports.md) for details on how to interpret log lines with EdgeWorkers fields. ## Docs - [DataStream 2 delivery log details](https://akamai.ferndocs.com/edge-workers/datastream2-reports.md): - [UXTW-9074 DataStream 2 delivery log details](https://akamai.ferndocs.com/edge-workers/datastream-2-delivery-log-details-copy.md):