recombine

package
v0.57.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultSourceIdentifier = "DefaultSourceIdentifier"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.53.0

type Config struct {
	helper.TransformerConfig `yaml:",inline"`
	IsFirstEntry             string        `json:"is_first_entry"     yaml:"is_first_entry"`
	IsLastEntry              string        `json:"is_last_entry"      yaml:"is_last_entry"`
	MaxBatchSize             int           `json:"max_batch_size"     yaml:"max_batch_size"`
	CombineField             entry.Field   `json:"combine_field"      yaml:"combine_field"`
	CombineWith              string        `json:"combine_with"       yaml:"combine_with"`
	SourceIdentifier         entry.Field   `json:"source_identifier"  yaml:"source_identifier"`
	OverwriteWith            string        `json:"overwrite_with"     yaml:"overwrite_with"`
	ForceFlushTimeout        time.Duration `json:"force_flush_period" yaml:"force_flush_period"`
	MaxSources               int           `json:"max_sources"        yaml:"max_sources"`
}

Config is the configuration of a recombine operator

func NewConfig added in v0.53.0

func NewConfig(operatorID string) *Config

NewConfig creates a new recombine config with default values

func (*Config) Build added in v0.53.0

func (c *Config) Build(logger *zap.SugaredLogger) (operator.Operator, error)

Build creates a new Transformer from a config

type Transformer added in v0.53.0

type Transformer struct {
	helper.TransformerOperator

	sync.Mutex
	// contains filtered or unexported fields
}

Transformer is an operator that combines a field from consecutive log entries into a single

func (*Transformer) Process added in v0.53.0

func (r *Transformer) Process(ctx context.Context, e *entry.Entry) error

func (*Transformer) Start added in v0.53.0

func (r *Transformer) Start(_ operator.Persister) error

func (*Transformer) Stop added in v0.53.0

func (r *Transformer) Stop() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL