regex

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 ProcessorRegex

type ProcessorRegex struct {
	Regex                  string
	Keys                   []string
	FullMatch              bool
	NoKeyError             bool
	NoMatchError           bool
	KeepSource             bool
	KeepSourceIfParseError bool
	SourceKey              string
	// contains filtered or unexported fields
}

ProcessorRegex is a processor plugin to process field with regex. It uses Regex to parse the field specified by SourceKey, and insert results with Keys. If no SourceKey is specified, the first field in log contents will be parsed. Note: use `()` to encase values to extract in Regex.

func (*ProcessorRegex) Description

func (*ProcessorRegex) Description() string

func (*ProcessorRegex) Init

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

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

func (*ProcessorRegex) ProcessLog

func (p *ProcessorRegex) ProcessLog(log *protocol.Log)

func (*ProcessorRegex) ProcessLogs

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

Jump to

Keyboard shortcuts

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