prorm API Reference
    Preparing search index...

    Class GraylogStore

    GraylogStore wraps Graylog's GELF HTTP ingest input and its REST universal-search / metadata API behind the NoSqlStore lifecycle.

    Implements

    Index
    name: "graylog" = 'graylog'

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

    library: "fetch" = 'fetch'

    The client library being used

    • Ingests one or more log entries as GELF messages via POST /gelf. Each entry is completed into a GELF 1.1 message with the shared host, and messages are newline-delimited (the GELF HTTP input accepts one JSON message per line).

      Parameters

      • host: string
      • entries: GraylogEntry[]

      Returns Promise<any>

    • Runs a relative universal search via GET /api/search/universal/relative. Returns the parsed response ({ messages, total_results, fields, ... }).

      Parameters

      • q: string
      • options: GraylogQueryOptions = {}

      Returns Promise<any>

    • Lists the known message field names via GET /api/system/fields.

      Returns Promise<any>

    • Lists the configured streams via GET /api/streams.

      Returns Promise<any>