Documentation ¶
Overview ¶
Package splunkhecexporter implements an exporter that sends data to Splunk.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory() component.ExporterFactory
NewFactory creates a factory for Splunk HEC exporter.
Types ¶
type Config ¶
type Config struct { configmodels.ExporterSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct. exporterhelper.TimeoutSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct. exporterhelper.QueueSettings `mapstructure:"sending_queue"` exporterhelper.RetrySettings `mapstructure:"retry_on_failure"` // HEC Token is the authentication token provided by Splunk. Token string `mapstructure:"token"` // URL is the Splunk HEC endpoint where data is going to be sent to. Endpoint string `mapstructure:"endpoint"` // Optional Splunk source: https://docs.splunk.com/Splexicon:Source. // Sources identify the incoming data. Source string `mapstructure:"source"` // Optional Splunk source type: https://docs.splunk.com/Splexicon:Sourcetype. SourceType string `mapstructure:"sourcetype"` // Splunk index, optional name of the Splunk index. Index string `mapstructure:"index"` // MaxConnections is used to set a limit to the maximum idle HTTP connection the exporter can keep open. Defaults to 100. MaxConnections uint `mapstructure:"max_connections"` // Disable GZip compression. Defaults to false. DisableCompression bool `mapstructure:"disable_compression"` // insecure_skip_verify skips checking the certificate of the HEC endpoint when sending data over HTTPS. Defaults to false. InsecureSkipVerify bool `mapstructure:"insecure_skip_verify"` }
Config defines configuration for Splunk exporter.
Click to show internal directories.
Click to hide internal directories.