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 Config ¶
type Config struct { confighttp.HTTPServerSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct splunk.AccessTokenPassthroughConfig `mapstructure:",squash"` // 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.