Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcessorSplitString ¶
type ProcessorSplitString struct { SplitSep string SplitKeys []string SourceKey string PreserveOthers bool ExpandOthers bool ExpandKeyPrefix string NoKeyError bool NoMatchError bool KeepSource bool // contains filtered or unexported fields }
ProcessorSplitString is a processor plugin to split field (SourceKey) with multi-bytes separator (SplitSep) and reinsert extracted values into log with SplitKeys. If PreserveOthers is set, it will insert the remainder bytes (after spliting) into log: if ExpandOthers is not set, the key will be set to _split_preserve_, otherwise, ExpandKeyPrefix will be used to generate key, such as expand_1, expand_2.
func (*ProcessorSplitString) Description ¶
func (*ProcessorSplitString) Description() string
func (*ProcessorSplitString) Init ¶
func (p *ProcessorSplitString) Init(context ilogtail.Context) error
Init called for init some system resources, like socket, mutex...
func (*ProcessorSplitString) ProcessLogs ¶
func (p *ProcessorSplitString) ProcessLogs(logArray []*protocol.Log) []*protocol.Log
func (*ProcessorSplitString) SplitValue ¶
func (p *ProcessorSplitString) SplitValue(log *protocol.Log, value string)
Click to show internal directories.
Click to hide internal directories.