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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcessorRegexFilter

type ProcessorRegexFilter struct {
	Include map[string]string
	Exclude map[string]string
	// contains filtered or unexported fields
}

ProcessorRegexFilter is a processor plugin to filter log according to the value of field. Include/Exclude are maps from string to string, key is used to search field in log, value is a regex to match the value of searched field. A log will be reserved only when its fields match all rules in Include and do not match any rule in Exclude.

func (*ProcessorRegexFilter) Description

func (*ProcessorRegexFilter) Description() string

func (*ProcessorRegexFilter) Init

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

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

func (*ProcessorRegexFilter) IsLogMatch

func (p *ProcessorRegexFilter) IsLogMatch(log *protocol.Log) bool

func (*ProcessorRegexFilter) ProcessLogs

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

Jump to

Keyboard shortcuts

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