@grow-codes/graylog - v0.1.1
    Preparing search index...

    Class GraylogLogQueryClient

    LogQueryClient on top of GraylogClient.search: absolute time range, timestamp order (ties broken by gl2_message_id), offset cursors, hits normalised into log records. Graylog has no streaming API: tail polls every 2 s with a 10 s look-back window.

    Hierarchy (View Summary)

    Index
    • Polls search every opts.intervalMs (default 2 s; Graylog has no streaming API) and calls onRecord once per new matching record, oldest first, starting at opts.start (default now). Each poll looks back TAIL_OVERLAP_MS before the newest record seen and drops duplicates by message id, so late records are delivered too. Search errors go to opts.onError and polling continues. The tail stops with the handle or when the client is closed. Throws CancelledError on a closed client.

      Parameters

      Returns TailHandle