recombine

package
v0.101.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 13 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 `mapstructure:",squash"`
	IsFirstEntry             string          `mapstructure:"is_first_entry"`
	IsLastEntry              string          `mapstructure:"is_last_entry"`
	MaxBatchSize             int             `mapstructure:"max_batch_size"`
	MaxUnmatchedBatchSize    int             `mapstructure:"max_unmatched_batch_size"`
	CombineField             entry.Field     `mapstructure:"combine_field"`
	CombineWith              string          `mapstructure:"combine_with"`
	SourceIdentifier         entry.Field     `mapstructure:"source_identifier"`
	OverwriteWith            string          `mapstructure:"overwrite_with"`
	ForceFlushTimeout        time.Duration   `mapstructure:"force_flush_period"`
	MaxSources               int             `mapstructure:"max_sources"`
	MaxLogSize               helper.ByteSize `mapstructure:"max_log_size,omitempty"`
}

Config is the configuration of a recombine operator

func NewConfig added in v0.53.0

func NewConfig() *Config

NewConfig creates a new recombine config with default values

func NewConfigWithID added in v0.59.0

func NewConfigWithID(operatorID string) *Config

NewConfigWithID creates a new recombine config with default values

func (*Config) Build added in v0.53.0

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 (t *Transformer) Process(ctx context.Context, e *entry.Entry) error

func (*Transformer) Start added in v0.53.0

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

func (*Transformer) Stop added in v0.53.0

func (t *Transformer) Stop() error

Jump to

Keyboard shortcuts

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