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

# Functions

ChangeDefaultCfgfileFlag replaces the value and default value for the `-c` flag so that it reflects the beat name.
GetDefaultCfgfile gets the full path of the default config file.
GetPathConfig returns ${path.config}.
HandleFlags adapts default config settings based on command line flags.
HashConfig hashes a given common.Config.
Load reads the configuration from a YAML file structure.
LoadList loads a list of configs data from the given file.
MatchDefault return a FactoryMatcher that always returns returns the given RunnerFactory.
MatchHasField returns a FactoryMatcher that returns the given RunnerFactory when the input config contains the given field name.
MultiplexedRunnerFactory is a RunnerFactory that uses a list of FactoryMatcher to choose which RunnerFactory should handle the configuration.
NewGlobManager takes a glob and enabled/disabled extensions and returns a GlobManager object.
NewReloader creates new Reloader instance for the given config.
NewRunnerList builds and returns a RunnerList.
Deprecated: Please use Load().

# Variables

DefaultDynamicConfig provides default behavior for a Runner.

# Structs

ConditionalOverride stores a config which needs to overwrite the existing config based on the result of the Check.
DynamicConfig loads config files from a given path, allowing to reload new changes while running the beat.
GlobManager allows to manage a directory of conf files.
Reload defines reload behavior and frequency.
Reloader is used to register and reload modules.
RunnerList implements a reloadable.List of Runners.

# Interfaces

Runner is a simple interface providing a simple way to Start and Stop Reloader.
RunnerFactory is used for validating generated configurations and creating of new Runners.

# Type aliases

FactoryMatcher returns a RunnerFactory that can handle the given configuration if it supports it, otherwise it returns nil.
OverrideChecker checks if a config should be overwritten.