What it is for
The Datadog component lets you send logs to your Datadog account from flooows, one at a time or in batches. It is useful for monitoring your flows, recording business events or centralizing in Datadog the activity of tools that do not integrate directly.
Datadog has no triggers in flooows: use it as an action inside flows started by other triggers.
Set up the connection
Authentication type: Custom credentials
- 1In Datadog open Organization Settings and, under API Keys, create or copy an API key.
- 2If you plan to use endpoints that require it, also create an Application Key under Application Keys.
- 3In flooows add a Datadog step and click "Connect".
- 4Paste the keys into "Datadog API key" and "Datadog App key", and pick your account region in "Site" (for example US1 or EU1).
| Connection field | Type | Required |
|---|---|---|
| Datadog API key | Secret key | Yes |
| Datadog App key (required for some endpoints) | Secret key | No |
| Site | Fixed list | Yes |
Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.
How to use it in a flow
- Send One log: type or map the "Message" and add "Service", "Hostname" and "DD Source" so you can filter later in Datadog.
- Use "DD Tags" with key:value pairs (for example env:prod,flow:orders) to group logs.
- "Additional Properties" lets you include structured data from the previous step, such as an order ID or amount.
- Send Multiple logs: pass a list of entries in "Logs", handy after a loop or query.
Tips
- •Add a Datadog step to error branches of your flows to spot failures quickly.
- •Keep service names consistent so you can build dashboards and alerts in Datadog.
- •For other Datadog APIs (metrics, events), use Custom API Call.
Actions (3)
Operations available as flow steps. Expand each one to see its fields.
Send Multiple logs1 fields
| Field | Type | Required |
|---|---|---|
| Logs | JSON | Yes |
Send One log6 fields
| Field | Type | Required |
|---|---|---|
| Message | Text | Yes |
| DD Source | Text | No |
| DD Tags | Text | No |
| Hostname | Text | No |
| Service | Text | No |
| Additional Properties | JSON | No |
Custom API Call10 fields
| Field | Type | Required |
|---|---|---|
| url | Dynamic fields | Yes |
| Method | Fixed list | Yes |
| Headers | Key / value pairs | No |
| Query Parameters | Key / value pairs | No |
| Body Type | List (from your account) | No |
| Body | Dynamic fields | No |
| Response is Binary | Yes / No | No |
| Return Error as Output | Yes / No | No |
| Timeout | Number | No |
| Follow redirects | Yes / No | No |
Common errors
403 Forbidden
The API key is wrong or the "Site" does not match your account region.
Logs do not show up
Check time filters and indexes in Datadog and that service and tags are as expected.
Error on advanced endpoints
Add the Application Key to the connection.
Field types
"List (from your account)" loads options from your connected account; "Dynamic fields" appear depending on earlier choices; in any field you can insert data from previous steps with the data selector (e.g. {{trigger.email}}). More about data between steps
