Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcessorAddFields ¶
type ProcessorAddFields struct { Fields map[string]string // the appending fields IgnoreIfExist bool // Whether to ignore when the same key exists // contains filtered or unexported fields }
ProcessorAddFields struct implement the Processor interface. The plugin would append the field to the input data.
func (*ProcessorAddFields) Description ¶
func (*ProcessorAddFields) Description() string
func (*ProcessorAddFields) Init ¶
func (p *ProcessorAddFields) Init(context pipeline.Context) error
Init method would be triggered before working for init some system resources, like socket, mutex. In this plugin, it verifies Fields must not be empty.
func (*ProcessorAddFields) ProcessLogs ¶
func (p *ProcessorAddFields) ProcessLogs(logArray []*protocol.Log) []*protocol.Log
ProcessLogs append Fields to each log.
Click to show internal directories.
Click to hide internal directories.