Documentation
¶
Index ¶
- Constants
- type Config
- type HEC
- type Option
- func WithACKPollInterval(interval time.Duration) Option
- func WithACKTimeout(timeout time.Duration) Option
- func WithBatchSize(size int) Option
- func WithBatchTimeout(timeout time.Duration) Option
- func WithEnableACK(enable bool) Option
- func WithEnableTLS(enable bool) Option
- func WithEventFormat(format string) Option
- func WithHost(host string) Option
- func WithIndex(index string) Option
- func WithMaxRetries(retries int) Option
- func WithPort(port string) Option
- func WithSource(source string) Option
- func WithSourceType(sourceType string) Option
- func WithTLSConfig(tlsConfig *tls.Config) Option
- func WithToken(token string) Option
- func WithWorkers(workers int) Option
Constants ¶
const ( // DefaultChannelSize is the default size of the data channel DefaultChannelSize = 100 // DefaultHTTPTimeout is the default timeout for HTTP requests DefaultHTTPTimeout = 30 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config holds configuration for HEC output
type HEC ¶
type HEC struct {
// contains filtered or unexported fields
}
HEC implements the Output interface for Splunk HTTP Event Collector
type Option ¶
Option is a functional option for configuring the HEC output
func WithACKPollInterval ¶
WithACKPollInterval sets how often to poll for ACK status
func WithACKTimeout ¶
WithACKTimeout sets how long to wait for an ACK before resending
func WithBatchSize ¶
WithBatchSize sets the maximum number of events per batch
func WithBatchTimeout ¶
WithBatchTimeout sets the maximum time to wait before flushing a partial batch
func WithEnableACK ¶
WithEnableACK enables or disables Splunk indexer acknowledgement
func WithEnableTLS ¶
WithEnableTLS enables TLS for HEC connections
func WithEventFormat ¶
WithEventFormat sets the event format: "raw" or "parsed"
func WithMaxRetries ¶
WithMaxRetries sets the maximum number of resend attempts per batch
func WithSource ¶
WithSource sets the default source metadata for HEC events
func WithSourceType ¶
WithSourceType sets the default sourcetype metadata for HEC events
func WithTLSConfig ¶
WithTLSConfig sets the TLS configuration for secure connections
func WithWorkers ¶
WithWorkers sets the number of worker goroutines