Skip to content

Log export

Org admins create log export sources under Logs → Export. A workspace policy (or a template) picks which sources receive that workspace’s requests. Datadog is the only destination today.

Setting Notes
Datadog site For example datadoghq.eu. Changing the site later requires a new API key.
API key Checked against Datadog before it’s saved. Stored encrypted and never shown again.
Service and tags Added to every entry. The tags org, workspace and avant_event are set by Avant.
Content How much of each request the source receives. See below.
Admin audit Also send every change made through the dashboard, CLI or admin API.

Datadog log intake only accepts API keys, so there’s no keyless option.

Level Receives
none Request metadata only. This is the default.
redacted Also the request as sent upstream (after masking) and the response.
full Also the request as the caller sent it, before masking.

Only org admins set a source’s content level. A workspace admin can only choose which sources the workspace uses.

Every entry has ddsource: avant and the source’s service.

Event When
avant.request Every proxied request in a workspace that exports
avant.request.content Content level redacted or full, in parts of at most 384 KiB
avant.admin_audit Every change, for sources with admin audit on

avant.request includes the workspace, provider, model, status, latency, policy outcome and rule, the calling member, the serving location, token counts, estimated cost, and the masking matches (types and ids only).

To rebuild a request’s content, join avant.data from parts 1..parts that share a recordId, then parse the result as JSON: { original, sent, response, responseStream, responseTruncated }. Streamed responses are kept up to 8 MiB.

Delivery is at least once. Use avant.recordId to drop duplicates. Avant doesn’t keep request content: records are staged for at most a day and deleted once they’re delivered.

A source can’t be deleted while a workspace policy or template still uses it.