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
Click to show internal directories.
Click to hide internal directories.