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

> ## Agent Instructions
> The current DFNS API specification is https://docs.dfns.co/openapi.yaml. Files under /openapi-versions/ are archives of past releases; do not use them for new code.
> Prefer the official DFNS SDKs to raw HTTP calls: they sign requests for you. See https://docs.dfns.co/sdks.md.
> Requests that change state need a User Action Signature in the X-DFNS-USERACTION header, in addition to the Authorization bearer token. See https://docs.dfns.co/guides/developers/signing-requests.md.
> Do not use appId or the X-DFNS-APPID header: applications are deprecated.
> For a summary of how to build on DFNS, read https://docs.dfns.co/skill.md.

# Datadog

> Forward your organization's DFNS audit events to Datadog Logs and Cloud SIEM: setup in the dashboard, log format, and example searches.

DFNS sends your organization's [audit events](https://docs.dfns.co/integrations/siem/overview.md) to [Datadog](https://www.datadoghq.com/) as logs, through the Datadog logs intake API. You can then search them in the Log Explorer and use them in Cloud SIEM detection rules.

## Before you start

You need:

* A Datadog **API key**. Create one in Datadog under **Organization Settings** > **API Keys**. An application key does not work.
* Your Datadog **site**: the region your Datadog account is hosted in. It is in the URL you use to sign in to Datadog, for example `app.datadoghq.eu` for EU1.
* The `Orgs:Settings:Update` permission in DFNS.

SIEM forwarding must be enabled for your organization. If the Datadog settings show **Feature Disabled**, click **Activate** or contact DFNS support.

## Setup

**1. Find the Datadog integration**

In the DFNS dashboard, go to **Integrations** and search for **Datadog**. Turn on the switch on the **Datadog** card.

![Integrations page filtered on Datadog, with the activation switch of the Datadog card highlighted](https://mintlify.s3.us-west-1.amazonaws.com/dfns-6d8c7466/images/auto/connecting-datadog-1.png)

**2. Enter your Datadog settings**

In the **Datadog** panel that opens:

* **Datadog site**: select the region of your Datadog account.
* **API key**: paste your Datadog API key.
* **Tags** (optional): add tags in Datadog's `key:value` format, such as `env:prod`. DFNS adds them to every event, so you can tell environments or organizations apart in Datadog.

![Datadog settings panel with the site, API key and tags fields, and the Save button highlighted](https://mintlify.s3.us-west-1.amazonaws.com/dfns-6d8c7466/images/auto/connecting-datadog-2.png)

**3. Save**

Click **Save**. Forwarding starts within a few minutes. Events from before that are not sent.

**4. Check that events arrive**

Perform a [forwarded operation](https://docs.dfns.co/integrations/siem/overview.md#forwarded-operations), for example [create a wallet](https://docs.dfns.co/guides/manage-wallets.md#creating-a-wallet). Then search the Datadog Log Explorer for:

```text theme={null}
source:dfns service:dfns-audit
```

DFNS stores your API key encrypted and never shows it again. To change other settings later, click **Configure** on the Datadog card: leave **API key** blank to keep the saved key, or enter a new key to replace it. To stop forwarding, turn off **Activate Datadog Integration** and click **Save**.

To use the events in Cloud SIEM detection rules, make sure your Cloud SIEM security filters include `source:dfns`.

## Datadog sites

| Site | Region |
| - | - |
| `datadoghq.com` | US1 |
| `us3.datadoghq.com` | US3 |
| `us5.datadoghq.com` | US5 |
| `datadoghq.eu` | EU1 |
| `ap1.datadoghq.com` | AP1 (Japan) |
| `ap2.datadoghq.com` | AP2 (Australia) |
| `ddog-gov.com` | US1-FED (Government) |

## Log format

Each event is one Datadog log. The [event fields](https://docs.dfns.co/integrations/siem/overview.md#event-format) are under `evt`, and the Datadog reserved attributes are set as follows:

| Attribute | Value |
| - | - |
| `ddsource` | `dfns` |
| `service` | `dfns-audit` |
| `ddtags` | `orgId:<your org ID>`, `event:user_action`, then your own tags |
| `message` | Summary of the action |
| `date` | When DFNS created the event |

Example: a transfer of native tokens.

```json theme={null}
{
  "ddsource": "dfns",
  "service": "dfns-audit",
  "ddtags": "orgId:or-30tnh-itmjs-s235s5ontr3r23h2,event:user_action,env:prod",
  "message": "Transfer Native asset to recipient 0xb7e5f0a8e6ca4b5c1e26e4b2fe0f4a9e3e0c7a52.",
  "date": "2026-11-20T10:15:02.114Z",
  "evt": {
    "id": "8f1d1e5a-5b0c-4f1e-9f3e-6a2b8c4d7e90",
    "kind": "user_action",
    "orgId": "or-30tnh-itmjs-s235s5ontr3r23h2",
    "data": {
      "userActionId": "uj-4vs1l-5012b-9589s12d57t26u8",
      "userId": "us-4ovh4-6a0h8-81d2df5e2u8l6djt",
      "action": {
        "method": "POST",
        "path": "/wallets/wa-3l6ap-r4cbt-8js1e2f3s8u5242c8/transfers",
        "server": "api.dfns.io",
        "summary": "Transfer Native asset to recipient 0xb7e5f0a8e6ca4b5c1e26e4b2fe0f4a9e3e0c7a52.",
        "payload": {
          "kind": "Native",
          "to": "0xb7e5f0a8e6ca4b5c1e26e4b2fe0f4a9e3e0c7a52",
          "amount": "1000000000000000000"
        }
      },
      "actionPath": "/wallets/wa-3l6ap-r4cbt-8js1e2f3s8u5242c8/transfers",
      "summary": "Transfer Native asset to recipient 0xb7e5f0a8e6ca4b5c1e26e4b2fe0f4a9e3e0c7a52.",
      "responseStatus": "200",
      "dateSigned": "2026-11-20T10:15:01.000Z",
      "datePerformed": "2026-11-20T10:15:01.482Z",
      "dateResolved": "2026-11-20T10:15:02.101Z"
    }
  }
}
```

## Example searches

| To find | Search |
| - | - |
| All DFNS events | `source:dfns service:dfns-audit` |
| Requests blocked or rejected by a policy | `source:dfns @evt.data.responseStatus:412` |
| Deletions (permissions, policies, users, assignments) | `source:dfns @evt.data.action.method:DELETE` |
| Actions of one user or service account | `source:dfns @evt.data.userId:us-4ovh4-6a0h8-81d2df5e2u8l6djt` |
| Events from one environment, with your own tag | `source:dfns env:prod` |

## Delivery to Datadog

DFNS sends an event to Datadog only within 18 hours of when it happened, because Datadog does not index older logs. Every action stays in your organization's [audit log](https://docs.dfns.co/guides/export-audit-log.md), whether or not it reached Datadog.

If Datadog rejects the API key, DFNS does not retry the events. Replace the key on the Datadog card, then check that new events arrive.


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