Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExpandParam ¶
type ExpandParam struct {
// contains filtered or unexported fields
}
func (*ExpandParam) ExpandJSONCallBack ¶
func (p *ExpandParam) ExpandJSONCallBack(key []byte, value []byte, dataType jsonparser.ValueType, _ int) error
type ProcessorJSON ¶
type ProcessorJSON struct { SourceKey string NoKeyError bool ExpandDepth int // 0是不限制,1是当前层 ExpandConnector string // 展开时的连接符,可以为空,默认为_ Prefix string // 默认为空,json解析出Key附加的前缀 KeepSource bool // 是否保留源字段 KeepSourceIfParseError bool UseSourceKeyAsPrefix bool // Should SourceKey be used as prefix for all extracted keys. IgnoreFirstConnector bool // 是否忽略第一个Connector ExpandArray bool // 是否展开数组类型 // contains filtered or unexported fields }
func (*ProcessorJSON) Description ¶
func (*ProcessorJSON) Description() string
func (*ProcessorJSON) Init ¶
func (p *ProcessorJSON) Init(context pipeline.Context) error
Init called for init some system resources, like socket, mutex...
func (*ProcessorJSON) Process ¶ added in v1.7.1
func (p *ProcessorJSON) Process(in *models.PipelineGroupEvents, context pipeline.PipelineContext)
func (*ProcessorJSON) ProcessLogs ¶
func (p *ProcessorJSON) ProcessLogs(logArray []*protocol.Log) []*protocol.Log
Click to show internal directories.
Click to hide internal directories.