Logs

Ingest newline-delimited JSON log lines with a log ingest key.

Changed on

One JSON object per line; see the logs documentation for the keys read. A batch is parsed and charged to the budget whole before anything is stored, so a malformed or over-budget batch stores nothing. Storage is at least once: if storing fails part-way (a full disk), the lines before the failure are kept and counted against the key, the request fails, and a collector that resends the batch stores those lines again.

post/logs/ingest

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Request body application/x-ndjson

string required

Response

Lines stored

acceptedinteger required

Lines stored from this request.

Changes