Documentation ¶
Overview ¶
Package splunkhecreceiver implements a receiver that can be used by the OpenTelemetry collector to receive data in the Splunk HEC supported formats.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory() component.ReceiverFactory
NewFactory creates a factory for Splunk HEC receiver.
Types ¶
type Config ¶
type Config struct { config.ReceiverSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct confighttp.HTTPServerSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct splunk.AccessTokenPassthroughConfig `mapstructure:",squash"` // Path was used to map the receiver to a specific subset of the path. Now ignored as we match all incoming requests. Path string `mapstructure:"path"` // RawPath for raw data collection, default is '/services/collector/raw' RawPath string `mapstructure:"raw_path"` // HecToOtelAttrs creates a mapping from HEC metadata to attributes. HecToOtelAttrs splunk.HecToOtelAttrs `mapstructure:"hec_metadata_to_otel_attrs"` }
Config defines configuration for the Splunk HEC receiver.
Click to show internal directories.
Click to hide internal directories.