prorm API Reference
    Preparing search index...

    Class SplunkStore

    SplunkStore wraps Splunk's HTTP Event Collector (ingest) and REST search API (SPL search jobs + index/sourcetype metadata) behind the NoSqlStore lifecycle.

    Implements

    Index
    name: "splunk" = 'splunk'

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

    library: "fetch" = 'fetch'

    The client library being used

    • Returns the lazily-required splunk-sdk module, or null if not installed.

      Returns any

    • Sends a batch of events to the HTTP Event Collector via POST /services/collector/event. Each event is wrapped in a HEC envelope carrying the shared meta (index/sourcetype/source/host); the envelopes are newline-concatenated as HEC expects.

      Parameters

      • meta: SplunkEventMeta
      • events: unknown[]

      Returns Promise<any>

    • Dispatches an SPL search via POST /services/search/jobs. The search string is normalized to start with search when it isn't already a generating command. Returns the parsed response (job SID or, for a oneshot search, the results).

      Parameters

      • spl: string
      • options: SplunkSearchOptions = {}

      Returns Promise<any>

    • Lists the configured source types via GET /services/data/sourcetypes.

      Returns Promise<any>

    • Lists the configured indexes via GET /services/data/indexes.

      Returns Promise<any>