package
7.17.28
Repository: https://github.com/elastic/beats.git
Documentation: pkg.go.dev

# Packages

# Functions

Fail helper can be used by output factories, to create a failure response when loading an output must return an error.
FindFactory finds an output type its factory if available.
Load creates and configures a output Group using a configuration object..
NetworkClients converts a list of NetworkClient instances into []Client.
NewFailoverClient combines a set of NetworkClients into one NetworkClient instances, with at most one active client.
NewNilObserver returns an oberserver implementation, ignoring all events.
NewStats creates a new Stats instance using a backing monitoring registry.
ReadHostList reads a list of hosts to connect to from an configuration object.
RegisterType registers a new output type.
Success create a valid output Group response for a set of client instances.
WithBackoff wraps a NetworkClient, adding exponential backoff support to a network client if connection/publishing failed.

# Variables

ErrCertificateNoKey indicate a configuration error with missing key file.
ErrKeyNoCertificate indicate a configuration error with missing certificate file.
ErrNoConnectionConfigured indicates no configured connections for publishing.
ErrNotACertificate indicates a PEM file to be loaded not being a valid PEM file or certificate.
LoadCertificate will load a certificate from disk and return a tls.Certificate or error.
LoadCertificateAuthorities read the slice of CAcert and return a Certpool.
LoadTLSConfig will load a certificate from config with all TLS based keys defined.
ReadPEMFile reads a PEM format file on disk and decrypt it with the privided password and return the raw content.

# Structs

Group configures and combines multiple clients into load-balanced group of clients being managed by the publisher pipeline.
Stats implements the Observer interface, for collecting metrics on common outputs events.

# Interfaces

Client provides the minimal interface an output must implement to be usable with the publisher pipeline.
Connectable is optionally implemented by clients that might be able to close and reconnect dynamically.
IndexManager provides additional index related services to the outputs.
IndexSelector is used to find the index name an event shall be indexed to.
NetworkClient defines the required client capabilities for network based outputs, that must be reconnectable.
Observer provides an interface used by outputs to report common events on documents/events being published and I/O workload.

# Type aliases

CertificateConfig define a common set of fields for a certificate.
Factory is used by output plugins to build an output instance.
TLSConfig defines config file options for TLS clients.