string

package
v1.8.8 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcessorSplitString

type ProcessorSplitString struct {
	SplitSep        string
	SplitKeys       []string
	SourceKey       string
	PreserveOthers  bool
	ExpandOthers    bool
	ExpandKeyPrefix string
	NoKeyError      bool
	NoMatchError    bool
	KeepSource      bool
	// contains filtered or unexported fields
}

ProcessorSplitString is a processor plugin to split field (SourceKey) with multi-bytes separator (SplitSep) and reinsert extracted values into log with SplitKeys. If PreserveOthers is set, it will insert the remainder bytes (after spliting) into log: if ExpandOthers is not set, the key will be set to _split_preserve_, otherwise, ExpandKeyPrefix will be used to generate key, such as expand_1, expand_2.

func (*ProcessorSplitString) Description

func (*ProcessorSplitString) Description() string

func (*ProcessorSplitString) Init

func (p *ProcessorSplitString) Init(context pipeline.Context) error

Init called for init some system resources, like socket, mutex...

func (*ProcessorSplitString) ProcessLogs

func (p *ProcessorSplitString) ProcessLogs(logArray []*protocol.Log) []*protocol.Log

func (*ProcessorSplitString) SplitValue

func (p *ProcessorSplitString) SplitValue(log *protocol.Log, value string)

Jump to

Keyboard shortcuts

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