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

# Datadog Logs API Endpoint

> Configure a Datadog Logs API endpoint to forward Connect AI audit log events to Datadog.

Connect AI can forward audit log events to Datadog through the Datadog Logs API. This page describes how to add a Datadog Logs API endpoint and how to view the forwarded events in Datadog. For an overview of SIEM endpoints, see [***SIEM Endpoints***](https://docs.cloud.cdata.com/en/Settings/Siem-Endpoints.md).

> [!NOTE]
>
> * Available for Business tier in Connect AI only.
> * Not available for Connect AI Embed.
> * Only Administrators can view, modify, or delete SIEM endpoints.

## Add a Datadog Logs API Endpoint

**Step 1**

In the **SIEM Endpoints** tab, click **+ Add Endpoint**. The **Add Endpoint** dialog appears.

**Step 2**

Select **Datadog Logs API**.

**Step 3**

Enter a user-defined **Endpoint Name**.

**Step 4**

Under **Configuration Settings**, configure the following:

* **Region**–(optional) select the region for your Datadog account.
* **DD-API-KEY**–enter the Datadog API key used to authenticate the connection. Find your key in Datadog under **Organization Settings** > **API Keys**.
* **Endpoint URL**–autogenerated based on the selected region.
* **Service Tag**–(optional) enter a user-defined tag to identify the events forwarded to your Datadog account, such as *audit-all-events*. In Datadog, you can search by this tag.

**Step 5**

Under **Delivery Settings**, configure the following:

* **Event Scope**–select which events are forwarded to the endpoint. Options include **All Events**. Coming soon: Support for specific events, such as **Control Plane** events.
* **Batch Size (Events)**–enter the maximum number of events to include in each batch.
* **Batch Size (Time-based)**–enter the maximum time interval (in seconds) before a batch is sent, even if the event limit has not been reached.
* **Delayed Event Alert Threshold**–enter the number of delayed events after which Connect AI sends an email alert to account administrators.
* **Alert Recipient Email**–enter the email address of the alert recipient, which can be a shared inbox. By default, this field is populated with your email address.
* **GZIP Compression**–toggle on or off to control whether event data is compressed before transmission.

**Step 6**

Click **Save**. Connect AI tests the connection immediately. If the test succeeds, the endpoint is added to the list. If the test fails, an error message appears; check your configuration and try again.

## View Events in Datadog

In Datadog, you can search using the **Service Tag** you entered on the **SIEM Endpoint** page. The following example displays all events under the tag `cdata-audit-test-all-events`:

![Datadog view](https://mintcdn.com/cdata/J6WgXQmKnvVnPYzp/en/images/settings_siem_datadog.png?fit=max\&auto=format\&n=J6WgXQmKnvVnPYzp\&q=85\&s=eeddc3f4458a7f84242e43bcec9d989f)

## Next Steps

To edit or delete the endpoint, or to review its delivery status, see [***SIEM Endpoints***](https://docs.cloud.cdata.com/en/Settings/Siem-Endpoints.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.