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 ¶
NewFactory creates a factory for Splunk HEC receiver.
Types ¶
type Ack ¶ added in v0.99.0
type Ack struct { // Extension defines the extension to use for acking of events. Without specifying an extension, the ACK endpoint won't be exposed Extension *component.ID `mapstructure:"extension"` // Path for Ack API, default is '/services/collector/ack'. Ignored if Extension is not provided. Path string `mapstructure:"path"` }
Ack defines configuration for the ACK functionality of the HEC receiver
type Config ¶
type Config struct { confighttp.ServerConfig `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct splunk.AccessTokenPassthroughConfig `mapstructure:",squash"` Ack `mapstructure:"ack"` // RawPath for raw data collection, default is '/services/collector/raw' RawPath string `mapstructure:"raw_path"` // Splitting defines the splitting strategy used by the receiver when ingesting raw events. Can be set to "line" or "none". Default is "line". Splitting SplittingStrategy `mapstructure:"splitting"` // HealthPath for health API, default is '/services/collector/health' HealthPath string `mapstructure:"health_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.
type SplittingStrategy ¶ added in v0.79.0
type SplittingStrategy string
const ( SplittingStrategyLine SplittingStrategy = "line" SplittingStrategyNone SplittingStrategy = "none" )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.