service and source facets, the level mapped to Datadog’s status, and the full meta object as searchable attributes.
Setup
- Create an API key in Organization Settings → API Keys.
- Set the environment variables:
- Wire the transport:
- Trigger a request and open Logs → Explorer in Datadog.
Environment Variables
Options
Plus the shared batching options:
maxBatchSize, flushIntervalMs, timeout, retries — see the overview.
Payload
Logs post tohttps://http-intake.logs.{site}/api/v2/logs:
status— the log level lowercased (info,warning,error), which Datadog’s default status remapper picks up for severity coloring.http.status_code— the HTTP response status from access logs, following Datadog’s standard attribute so response-code facets work out of the box.- Attributes — the full meta object rides along nested (
request.method,context.requestId,durationMs, …), searchable with@request.method:GETstyle queries.
Troubleshooting
403— the API key is invalid, or it belongs to a different site thanDD_SITE; keys are region-scoped.- Wrong region — EU organizations must set
DD_SITE=datadoghq.eu; a wrong site surfaces as a non-2xx response through theonErrorhook or stderr. - Levels look wrong — if you customized the status remapper in a log pipeline, map it to the
statusattribute.