Skip to content

Splunk HEC

Output events to a Splunk HTTP Event Collector endpoint (Splunk HEC).

FieldTypeRequiredDescription
batchBatchBatching input events together.
retryRetryHow to retry this operation.
urlurl (string)The URL of the Splunk HEC instance (example: https://127.0.0.1:8088/services/collector/event).
insecureboolean (bool)Ignore TLS certificate validation errors (This is not recommended).
Collector Options
FieldTypeRequiredDescription
hec-tokensplunk_hec_output:hec-tokenSpecify a value to use for the HEC Token or set it using an event field.
metricsboolean (bool)Send a metrics formatted payload to the HEC endpoint.
event-fieldevent-field (string)If specified, the field’s contents will be submitted as the event payload to the endpoint.
time-fieldevent-field (string)Use the specified field for the timestamp of the endpoint. This should be in Unix epoch format.
indexsplunk_hec_output:indexSpecify a value to use for the Splunk index or set it using an event field.
hostsplunk_hec_output:hostSpecify a value to use for the Splunk host or set it using an event field.
sourcesplunk_hec_output:sourceSpecify a value to use for the Splunk source or set it using an event field.
sourcetypesplunk_hec_output:sourcetypeSpecify a value to use for the Splunk sourcetype or set it using an event field.
removeboolean (bool)Consume (remove) fields from the event payload before submitting to the endpoint. Applicable to time-field, host-field, source-field, sourcetype-field, index-field and hec-token-field.
FieldTypeRequiredDescription
fixed-sizeintegermaximum number of events in an output batch.
modesymbolIf ‘document’ send on end of document generated by input. If ‘fixed’, use fixed_size.
timeoutstringinterval after which the batch is sent, to keep throughput going (default 100ms).
headerstringput a header line before the batch.
footerstringput a header line after the last line of the batch.
use-document-markerboolEnrich the job metadata with a document marker (for document handling in batch mode).
wrap-as-jsonboolFormat the output batch as a JSON array.
FieldTypeRequiredDescription
countintegerHow to retry? Either forever or for a limited number of times.
pausestringHow long to pause before re-trying.