Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcessorAppender ¶
type ProcessorAppender struct { Key string Value string SortLabels bool Platform platformmeta.Platform ReadOnce bool // contains filtered or unexported fields }
func (*ProcessorAppender) Description ¶
func (*ProcessorAppender) Description() string
func (*ProcessorAppender) Init ¶
func (p *ProcessorAppender) Init(context pipeline.Context) error
Init called for init some system resources, like socket, mutex...
func (*ProcessorAppender) ParseVariableValue ¶ added in v1.4.0
func (p *ProcessorAppender) ParseVariableValue(key string) string
ParseVariableValue parse specific key with logic:
- if key start with '$', the get from env
- if key == __ip__, return local ip address
- if key == __host__, return hostName others return key
func (*ProcessorAppender) ProcessLogs ¶
func (p *ProcessorAppender) ProcessLogs(logArray []*protocol.Log) []*protocol.Log
Click to show internal directories.
Click to hide internal directories.