> ## Documentation Index
> Fetch the complete documentation index at: https://docs.runalloy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Streaming Logs to Datadog

> Alloy's Log Streaming feature enables real-time monitoring and observability of workflow actions and execution logs. It can be configured to send logs to [Datadog](https://www.datadoghq.com/) - a cloud-based monitoring and analytics solution that allows you to see inside applications within your stack and aggregate the results. 

By connecting your Datadog account to Alloy, you can:

* Monitor workflow executions and actions in real-time using Datadog dashboards.
* Automatically alert on failure or performance degradation through Datadog integrations.
* Store logs for historical analysis.
* Filter and search workflow failed logs via Datadog API for precise debugging.

## Connecting your DataDog account to Alloy

To connect your DataDog account to Alloy, follow the steps below:

<Steps>
  <Step title="Retrieve your URL and API Key from Datadog">
    Go to Organization Settings > API Keys in the Datadog. Click New Key and enter a descriptive name. Save the API Key for later use.

    <Frame>
      ![](https://alloy-assets.s3.amazonaws.com/alloy-docs/embedded/handling-errors/datadog-api-key.png)
    </Frame>
  </Step>

  <Step title="Connect your DataDog account to Alloy">
    Navigate to the **Settings → Logging** section in Alloy Embedded and click  the Connect button in the **Connect to Datadog** tab.

    <Frame>
      ![](https://alloy-assets.s3.amazonaws.com/alloy-docs/embedded/handling-errors/settings-logging-datadog-eventbridge.png)
    </Frame>
  </Step>
</Steps>

Enter your API Key and URL in the modal that appears. Click **Connect** to activate the integration.
