Create Log Drain
Changed onRequest
- Base URLhttps://api.hedra.com/v3
- Auth
- API key in header Authorization
- or HTTP bearer
Request body
Human-readable label.
HTTPS endpoint job-log batches are posted to.
Wire encoding for one log drain endpoint's HTTP posts.
Signs every NDJSON post. Required when format is ndjson (the default); optional for otlp drains, whose receivers authenticate with headers instead.
Extra headers sent with every post — typically the receiver's authentication. Stored values are never echoed back; reads expose header_names only.
Whether the drain receives batches.
Maximum log lines per post.
Response
Successful Response
The drain's id (drain_<uuid>).
Human-readable label.
The destination endpoint.
Wire encoding for one log drain endpoint's HTTP posts.
Names of the configured extra headers. Values are write-only and never echoed back.
Whether the drain receives batches.
Maximum log lines per post.
Failed batches since the last success; the drain auto-disables when it crosses the failure threshold.
ISO-8601 instant of the last delivered batch.
ISO-8601 instant of the last failed batch.
HTTP status of the last failed batch; null when it never got a response.
Why the drain is off (consecutive_failures for auto-disable, disabled_by_user); null while enabled.
ISO-8601 instant the drain was created.
ISO-8601 instant the config last changed.
The API key that last changed the config.
Changes
- info
endpoint added
- info