Documentation

Export to Datadog

Audit events arrive as logs with source modelriver, every event field searchable as an attribute.

What ModelRiver sends

A POST to your site's logs intake, https://http-intake.logs.<site>/api/v2/logs, with the DD-API-KEY header and a JSON array of up to 500 logs:

JSON
1[
2 {
3 "ddsource": "modelriver",
4 "service": "modelriver-audit",
5 "message": "Created admin key",
6 "id": "0193a4f2-6c1e-7b7a-9d1e-5f2b8c3a4d10",
7 "inserted_at": "2026-11-25T10:00:00.123456Z",
8 "action": "security.admin_key_created",
9 "...": "..."
10 }
11]

Every event field is a top-level attribute, so you can search @action:security.admin_key_created or @high_risk:true. message is the event's summary.

1. Create an API key

In Datadog, open Organization Settings → API Keys and create a key named modelriver-audit. Use an API key, not an application key.

2. Configure the export

In Organization settings → Audit log export, choose Datadog, pick your Site, paste the API key, and save.

SiteChoose
US1 (app.datadoghq.com)datadoghq.com
US3us3.datadoghq.com
US5us5.datadoghq.com
EU (app.datadoghq.eu)datadoghq.eu
AP1ap1.datadoghq.com
AP2ap2.datadoghq.com

ModelRiver builds the intake URL from the site; you can't enter another URL. The API key is encrypted at rest and never shown again. If you change the site, enter the key again.

Choose Send test, then search the Log Explorer for source:modelriver @action:export.test.

Timestamps

Datadog stamps each log with the time it was received, about one to three minutes after the event. To use the event's own time, add a Date remapper on inserted_at to a log pipeline filtered on source:modelriver (untested).

Duplicates

After a timeout or a 5xx, a batch is sent again with the same events, so a log can occasionally appear twice. Group or deduplicate on @id.