@grow-codes/openobserve - v0.1.2
    Preparing search index...

    Class OpenObserveLogs

    The OpenObserve logs module: client.logs.

    Index
    • Elasticsearch-compatible bulk write: POST /api/{org}/_bulk. Accepts structured actions or a raw NDJSON body. delete and update actions are rejected client-side with ValidationError because the server silently ignores them.

      Parameters

      Returns Promise<BulkResult>

    • Writes SDK log records as OTLP/JSON (POST /api/{org}/v1/logs, header stream-name). The server stores body, severity, severity_number, trace_id, span_id and flattened attributes; trace flags are not stored.

      Parameters

      Returns Promise<OtlpIngestResult>

    • Runs a SQL query: POST /api/{org}/_search?type=logs. Quote stream names with double quotes (SELECT * FROM "default"); without ORDER BY rows come newest first. Times are converted to microseconds (the server silently returns nothing for millisecond values).

      Parameters

      Returns Promise<SearchResult>

    • Follows a stream by polling _search with a _timestamp cursor (OpenObserve has no live tail). Every poll re-reads overlapMs before the cursor (never before start) and drops rows it already delivered (by full-row equality), so rows that are exact duplicates within that window are delivered once.

      Parameters

      Returns TailHandle