toSplunkEvent
function toSplunkEvent( item, batch, options?): Record<string, unknown>;Defined in: src/sinks/splunk.ts:62
Map one item to a HEC event object.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
item |
StreamItem |
batch |
StreamBatch |
options? |
Pick<SplunkSinkOptions, "index" | "host" | "source" | "sourcetype" | "fields"> |
Returns
Section titled “Returns”Record<string, unknown>