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