LogDrain
Structured log ingestion with search and alerting. Ship logs from anywhere with a single HTTP call.
Key endpoints
POST /v1/logdrain/ingest— Ingest a log entryPOST /v1/logdrain/ingest/batch— Batch ingestGET /v1/logdrain/drains— List drainsGET /v1/logdrain/search— Search logs
curl
bash
curl -X POST https://api.luxkern.com/v1/logdrain/ingest \ -H "Authorization: Bearer lxk_live_xxx" \ -H "Content-Type: application/json" \ -d '{ "drain": "production-api", "level": "error", "message": "Payment processing failed", "meta": { "order_id": "ord_456", "provider": "stripe" } }'Node.js
js
"text-[var(--color-info)] font-medium">const res = "text-[var(--color-info)] font-medium">await fetch("https://api.luxkern.com/v1/logdrain/ingest", { method: "POST", headers: { "Authorization": "Bearer lxk_live_xxx", "Content-Type": "application/json", }, body: JSON.stringify({ drain: "production-api", level: "error", message: "Payment processing failed", meta: { order_id: "ord_456", provider: "stripe" }, }),}); "text-[var(--color-info)] font-medium">const { success } = "text-[var(--color-info)] font-medium">await res.json();