Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BuildContext ¶
type BuildContext struct { Database database.Database Parameters map[string]interface{} Logger *zap.SugaredLogger }
BuildContext supplies contextual resources when building an operator.
type Builder ¶
type Builder interface { ID() string Type() string Build(BuildContext) (Operator, error) SetNamespace(namespace string, exclude ...string) }
Builder is an entity that can build operators
type Config ¶
type Config struct {
Builder
}
Config is the configuration of an operator
func (Config) MarshalJSON ¶
MarshalJSON will marshal a config to JSON.
func (Config) MarshalYAML ¶
MarshalYAML will marshal a config to YAML.
func (*Config) UnmarshalJSON ¶
UnmarshalJSON will unmarshal a config from JSON.
func (*Config) UnmarshalYAML ¶
UnmarshalYAML will unmarshal a config from YAML.
type Operator ¶
type Operator interface { // ID returns the id of the operator. ID() string // Type returns the type of the operator. Type() string // Start will start the operator. Start() error // Stop will stop the operator. Stop() error // CanOutput indicates if the operator will output entries to other operators. CanOutput() bool // Outputs returns the list of connected outputs. Outputs() []Operator // SetOutputs will set the connected outputs. SetOutputs([]Operator) error // CanProcess indicates if the operator will process entries from other operators. CanProcess() bool // Process will process an entry from an operator. Process(context.Context, *entry.Entry) error // Logger returns the operator's logger Logger() *zap.SugaredLogger }
Operator is a log monitoring component.
Directories ¶
Path | Synopsis |
---|---|
builtin
|
|
input/file
Module
|
|
input/journald
Module
|
|
input/k8sevent
Module
|
|
input/tcp
Module
|
|
input/udp
Module
|
|
input/windows
Module
|
|
output/elastic
Module
|
|
output/file
Module
|
|
output/googlecloud
Module
|
|
output/newrelic
Module
|
|
output/otlp
Module
|
|
output/stdout
Module
|
|
parser/json
Module
|
|
parser/regex
Module
|
|
parser/severity
Module
|
|
parser/syslog
Module
|
|
parser/time
Module
|
|
transformer/filter
Module
|
|
transformer/hostmetadata
Module
|
|
transformer/k8smetadata
Module
|
|
transformer/metadata
Module
|
|
transformer/ratelimit
Module
|
|
transformer/restructure
Module
|
|
transformer/router
Module
|
|
Click to show internal directories.
Click to hide internal directories.