Splunk HEC receiver 🔗
The Splunk HTTP Event Collector (HEC) receiver allows the Splunk Distribution of OpenTelemetry Collector to collect events and logs in Splunk HEC format. The supported pipeline types are
logs. See Process your data with pipelines for more information.
The receiver accepts data formatted as JSON HEC events under any path or as end-of-line separated log raw data if sent to the
raw_path. See Format events for HTTP Event Collector for more information.
For information about the HEC exporter, see Splunk HEC exporter.
Get started 🔗
Follow these steps to configure and activate the component:
Deploy the Splunk Distribution of OpenTelemetry Collector to your host or container platform:
Configure the Splunk HEC receiver as described in the next section.
Restart the Collector.
Sample configuration 🔗
To activate the Splunk HEC receiver add a
splunk_hec entry inside the
receivers section of the Collector configuration file:
To complete the configuration, include the receiver in the required pipeline of the
service section of your
configuration file. For example:
Configuration example 🔗
The following example shows a Splunk HEC receiver configured with all available settings:
# Address and port the Splunk HEC receiver should bind to
# Whether to preserve incoming access token
# Path accepting raw HEC events (logs only)
# Path reporting health checks
# Define field mappings
# Optional TLS settings
# Both cert_file and
# key_file are required
# for TLS connections
The following table shows the configuration options for the Splunk HEC receiver:
If you are a Splunk Observability Cloud customer and are not able to see your data in Splunk Observability Cloud, you can get help in the following ways.
Available to Splunk Observability Cloud customers
Available to prospective customers and free trial users
Ask a question and get answers through community support at Splunk Answers .
Join the Splunk #observability user group Slack channel to communicate with customers, partners, and Splunk employees worldwide. To join, see Chat groups in the Get Started with Splunk Community manual.
To learn about even more support options, see Splunk Customer Success .