# Datadog Log Integration (legacy)

We recommend our latest [Datadog](/docs/logs-datadog-v2/) integration for a structured, modernized log delivery experience using **OpenTelemetry,** with extended region support.

CloudAMQP ships broker logs to Datadog via the legacy log-forwarding service. Available on RabbitMQ dedicated instances.

Link: [https://docs.datadoghq.com/logs/](https://docs.datadoghq.com/logs/)

## Setup

1. Get your API key from [Datadog → Organization Settings → API Keys](https://app.datadoghq.com/organization-settings/api-keys).
2. Select the **Site** matching your Datadog account region.
3. Optionally add **tags** to filter and group logs in Datadog (e.g. `env=production,team=platform`).

## Log format

Logs are delivered as JSON. Example for cluster `quick-gray-porcupine` with tag `env=example`:

```json
{
  "ddsource": "cloudamqp",
  "ddtags": "env:example",
  "hostname": "quick-gray-porcupine-01",
  "message": "2025-03-25 11:07:02.552827+00:00 [info] <0.10.0> Time to start RabbitMQ: 13283 ms\n",
  "service": "quick-gray-porcupine"
}
```

If `service` is set as an optional tag it will override the `service` field above. This applies to integrations created after July 1, 2025.

[← Back to Log Integrations](/docs/cloudamqp-integrations/#legacy-logs)
