prorm API Reference
    Preparing search index...

    Class SumoLogicStore

    SumoLogicStore wraps Sumo Logic's HTTP Source ingest and its Search Job API (create job + fetch messages) plus field/collector metadata behind the NoSqlStore lifecycle.

    Implements

    Index
    name: "sumologic" = 'sumologic'

    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 Source collectorURL. Accepts a single string or an array of lines (joined with newlines).

      Parameters

      • lines: string | string[]

      Returns Promise<any>

    • Creates a search job via POST /api/v1/search/jobs. Returns the parsed response (typically { id }); use messages(id) to fetch results once the job completes.

      Parameters

      • q: string
      • options: SumoLogicQueryOptions = {}

      Returns Promise<any>

    • Fetches messages for a completed search job via GET /api/v1/search/jobs/<id>/messages.

      Parameters

      • jobId: string
      • offset: number = 0
      • limit: number = 100

      Returns Promise<any>

    • Fetches the status of a search job via GET /api/v1/search/jobs/<id>.

      Parameters

      • jobId: string

      Returns Promise<any>