$ s2b intake datadog
Datadog intake that writes to your own bucket
Change the URL and API key in the Datadog Agent, a tracer, the OTel Collector or Vector. Each log, metric and span then lands as one JSON line in your S3 or GCS bucket.
Send2Bucket replies 202 once a batch is stored durably, as Datadog's intake does.
datadog clients and their settings
Each client keeps its instrumentation. Only the URL and key change, and the right pane is a line it stored.
api_key: <key> dd_url: https://api.send2bucket.com/v1/events/datadog logs_enabled: true logs_config: logs_dd_url: https://api.send2bucket.com/v1/events/datadog apm_config: apm_dd_url: https://api.send2bucket.com/v1/events/datadog
{
"resources": [
{
"type": "host",
"name": "web-1"
}
],
"metric": "queue.depth",
"tags": [],
"points": [
{
"value": 10.0,
"timestamp": 1795517260
}
],
"type": 3,
"unit": "",
"source_type_name": "",
"interval": 10,
"metadata": {
"origin": {
"origin_product": 10,
"origin_category": 10,
"origin_service": 0
}
}
}To keep Datadog as well, leave dd_url as it is and add Send2Bucket under additional_endpoints.
same agent, new url
Three settings move the Agent's metrics, logs and traces to Send2Bucket. Integrations, DogStatsD and the tracers that report to the Agent keep theirs.
DD_DD_URL=https://api.send2bucket.com/v1/events/datadog DD_LOGS_CONFIG_LOGS_DD_URL=https://api.send2bucket.com/v1/events/datadog DD_APM_DD_URL=https://api.send2bucket.com/v1/events/datadog
sql over the stored spans
DuckDB reads the objects where they are, partitioned by stream, date and hour. Trace and span IDs are unsigned 64-bit numbers, so cast them to UBIGINT.
- [ok] logs, metric series, sketches and spans in one view
- [ok] 128-bit trace IDs keep their high half in meta._dd.p.tid
- [ok] Iceberg and DuckLake tables hold the line in payload
SELECT data->>'$.service' AS service, data->>'$.resource' AS resource, CAST(data->>'$.trace_id' AS UBIGINT) AS trace_id, CAST(data->>'$.duration' AS BIGINT) / 1e6 AS ms FROM datadog WHERE signal = 'span' ORDER BY ms DESC LIMIT 10; ┌─────────────┬────────────┬──────────────────────┬───────────┐ │ service │ resource │ trace_id │ ms │ │ varchar │ varchar │ uint64 │ double │ ├─────────────┼────────────┼──────────────────────┼───────────┤ │ shop-java │ POST /cart │ 4587294707487867877 │ 19.524432 │ │ shop-java │ Main.query │ 4587294707487867877 │ 10.846695 │ │ shop │ POST /cart │ 6660727365939972700 │ 10.655721 │ │ shop │ db.query │ 6660727365939972700 │ 10.577861 │ │ checkout │ POST /cart │ 10305752489357460801 │ 10.520922 │ │ shop │ POST /cart │ 12199169306583075070 │ 10.353283 │ │ shop │ POST /cart │ 185699983653616145 │ 10.343815 │ │ shop │ db.query │ 185699983653616145 │ 10.281721 │ │ checkout-db │ SELECT 1 │ 10305752489357460801 │ 10.181299 │ │ shop-db │ SELECT 1 │ 12199169306583075070 │ 10.122954 │ └─────────────┴────────────┴──────────────────────┴───────────┘ 10 rows 4 columns
a stream for your datadog clients
Check the key the way the clients do, then send one log. It lands as one line in your bucket.
curl https://api.send2bucket.com/v1/events/datadog/api/v1/validate \ -H "DD-API-KEY: $S2B_API_KEY"
curl -i https://api.send2bucket.com/v1/events/datadog/api/v2/logs \
-H "DD-API-KEY: $S2B_API_KEY" \
-H "Content-Type: application/json" \
--data '[{"message":"hello from curl","service":"check","status":"info"}]'{"v":1,"delivery_batch_id":"dlv_003620rjfsdrcl5el1vut1u92j2bk","stream_id":"4f1c2b9e-8d3a-4e7b-9c51-0a6f2d8e3b17","batch_id":"bat_003620rj8ktkui5gahnvk2p69847k","received_at":"2026-11-24T10:48:26.977103Z","signal":"log","data":{"message":"hello from curl","service":"check","status":"info"}}