prorm API Reference
    Preparing search index...

    Class PapertrailStore

    PapertrailStore wraps Papertrail's HTTP log-destination ingest and its REST events-search API (plus group/system metadata) behind the NoSqlStore lifecycle.

    Implements

    Index
    name: "papertrail" = 'papertrail'

    The name of the store (e.g. 'mongodb', 'redis', 'dynamodb')

    library: "fetch" = 'fetch'

    The client library being used

    • Ingests raw log lines by POSTing them (newline-delimited) to the configured HTTP log-destination ingestURL. Accepts a single string or an array of lines (joined with newlines).

      Parameters

      • lines: string | string[]

      Returns Promise<any>

    • Searches log events via GET /api/v1/events/search. Returns the parsed response ({ events, min_id, max_id, reached_beginning, ... }).

      Parameters

      • q: string
      • options: PapertrailQueryOptions = {}

      Returns Promise<any>

    • Lists the configured systems (log senders) via GET /api/v1/systems.

      Returns Promise<any>