Ingest events
The batch is atomic: every event is stored or none is. Event times must fall between now minus the retention period and now plus the allowed future skew (five minutes by default). Producer fields that Logbrook doesn't map are kept in attributes. The first authorized write to a missing index creates it, up to max_indexes.
POST
/indexes/{index}/logs/ingestAuthorization
Path parameters
Request body JSON required
Request body
X-NDJSON"{\"time\":1794297417000,\"level\":30,\"msg\":\"payment authorized\",\"service\":\"checkout-api\",\"name\":\"payments\",\"hostname\":\"web-1\",\"pid\":4182,\"orderId\":\"ord_8f3k2\",\"amountCents\":4999,\"currency\":\"EUR\"}\n{\"time\":1794297418500,\"level\":40,\"msg\":\"card issuer slow to respond\",\"service\":\"checkout-api\",\"name\":\"payments\",\"hostname\":\"web-1\",\"pid\":4182,\"orderId\":\"ord_8f3k3\",\"latencyMs\":2380}\n{\"time\":1794297421200,\"level\":50,\"msg\":\"payment declined\",\"service\":\"checkout-api\",\"name\":\"payments\",\"hostname\":\"web-2\",\"pid\":3920,\"orderId\":\"ord_8f3k4\",\"reason\":\"insufficient_funds\"}\n"