Create Log Drain
Authorizations
Primary scheme: Authorization: Key <key_id>:<secret>.
Body
1 - 1001 - 8192Wire encoding for one log drain endpoint's HTTP posts.
ndjson, otlp Signs every NDJSON post. Required when format is ndjson (the default); optional for otlp drains, whose receivers authenticate with headers instead.
64 - 40961 <= x <= 5000Response
Successful Response
Wire encoding for one log drain endpoint's HTTP posts.
ndjson, otlp Why the most recent batch delivery failed, in the same error envelope GET /jobs/{job_id} returns for a failed job: a stable code from the shared error vocabulary, a fixed operator-facing message, and retryable. Null while no batch has failed, and cleared on the next success. Destination URLs, headers, credentials, response bodies, and internal exception text are never included. Nor is your drain URL written to Hedra's own logs, since it may carry authentication in its query string. retryable describes the condition, not what Hedra did: every failed batch is requeued until the drain auto-disables, so it answers whether fixing the destination and re-enabling is likely to help. Drains that last failed before this field became structured report UNKNOWN.