Documentation ¶
Index ¶
- Constants
- func LogErrorWithIgnore(ignore bool, format string, a ...interface{})
- type AddConfig
- type AddMetaConfig
- type AddMetaProcessor
- type AddProcessor
- type Config
- type Convert
- type ConvertConfig
- type ConvertProcessor
- type CopyConfig
- type CopyProcessor
- type DropConfig
- type DropProcessor
- type FmtConfig
- type FmtProcessor
- type Interceptor
- func (i *Interceptor) BelongTo() (componentTypes []string)
- func (i *Interceptor) Category() api.Category
- func (i *Interceptor) Config() interface{}
- func (i *Interceptor) IgnoreRetry() bool
- func (i *Interceptor) Init(context api.Context) error
- func (i *Interceptor) Intercept(invoker source.Invoker, invocation source.Invocation) api.Result
- func (i *Interceptor) Order() int
- func (i *Interceptor) Start() error
- func (i *Interceptor) Stop()
- func (i *Interceptor) String() string
- func (i *Interceptor) Type() api.Type
- type JsonDecodeConfig
- type JsonDecodeProcessor
- type MoveConfig
- type MoveProcessor
- type Processor
- type ProcessorConfig
- type ProcessorGroup
- type RegexConfig
- type RegexProcessor
- type SplitConfig
- type SplitProcessor
- type TimestampConfig
- type TimestampConvert
- type TimestampProcessor
- type UnderRootConfig
- type UnderRootProcessor
Constants ¶
View Source
const ProcessorAdd = "add"
View Source
const ProcessorAddMeta = "addMeta"
View Source
const ProcessorConvert = "convert"
View Source
const ProcessorCopy = "copy"
View Source
const ProcessorDrop = "drop"
View Source
const ProcessorFmt = "fmt"
View Source
const ProcessorJsonDecode = "jsonDecode"
View Source
const ProcessorMove = "rename"
View Source
const ProcessorRegex = "regex"
View Source
const ProcessorSplit = "split"
View Source
const ProcessorTimestamp = "timestamp"
View Source
const ProcessorUnderRoot = "underRoot"
View Source
const SystemLogBody = "systemLogBody"
View Source
const Type = "normalize"
Variables ¶
This section is empty.
Functions ¶
func LogErrorWithIgnore ¶ added in v1.2.0
Types ¶
type AddConfig ¶
type AddConfig struct {
Fields map[string]interface{} `yaml:"fields,omitempty" validate:"required"`
}
type AddMetaConfig ¶
type AddMetaConfig struct {
Target string `yaml:"target,omitempty" default:"meta"`
}
type AddMetaProcessor ¶
type AddMetaProcessor struct {
// contains filtered or unexported fields
}
func NewAddMetaProcessor ¶
func NewAddMetaProcessor() *AddMetaProcessor
func (*AddMetaProcessor) Config ¶
func (r *AddMetaProcessor) Config() interface{}
func (*AddMetaProcessor) GetName ¶ added in v1.3.0
func (r *AddMetaProcessor) GetName() string
func (*AddMetaProcessor) Init ¶
func (r *AddMetaProcessor) Init(interceptor *Interceptor)
type AddProcessor ¶
type AddProcessor struct {
// contains filtered or unexported fields
}
func NewAddProcessor ¶
func NewAddProcessor() *AddProcessor
func (*AddProcessor) Config ¶
func (r *AddProcessor) Config() interface{}
func (*AddProcessor) GetName ¶ added in v1.3.0
func (r *AddProcessor) GetName() string
func (*AddProcessor) Init ¶
func (r *AddProcessor) Init(interceptor *Interceptor)
type Config ¶
type Config struct { interceptor.ExtensionConfig `yaml:",inline"` Processors ProcessorConfig `yaml:"processors,omitempty"` }
Config Deprecated, use transformer instead
type ConvertConfig ¶
type ConvertConfig struct {
Convert []Convert `yaml:"convert,omitempty" validate:"required"`
}
type ConvertProcessor ¶
type ConvertProcessor struct {
// contains filtered or unexported fields
}
func NewConvertProcessor ¶
func NewConvertProcessor() *ConvertProcessor
func (*ConvertProcessor) Config ¶
func (p *ConvertProcessor) Config() interface{}
func (*ConvertProcessor) GetName ¶ added in v1.3.0
func (p *ConvertProcessor) GetName() string
func (*ConvertProcessor) Init ¶
func (p *ConvertProcessor) Init(interceptor *Interceptor)
type CopyConfig ¶
type CopyConfig struct {
Convert []Convert `yaml:"convert,omitempty" validate:"required"`
}
type CopyProcessor ¶
type CopyProcessor struct {
// contains filtered or unexported fields
}
func NewCopyProcessor ¶
func NewCopyProcessor() *CopyProcessor
func (*CopyProcessor) Config ¶
func (r *CopyProcessor) Config() interface{}
func (*CopyProcessor) GetName ¶ added in v1.3.0
func (r *CopyProcessor) GetName() string
func (*CopyProcessor) Init ¶
func (r *CopyProcessor) Init(interceptor *Interceptor)
type DropConfig ¶
type DropConfig struct {
Targets []string `yaml:"targets,omitempty" validate:"required"`
}
type DropProcessor ¶
type DropProcessor struct {
// contains filtered or unexported fields
}
func NewDropProcessor ¶
func NewDropProcessor() *DropProcessor
func (*DropProcessor) Config ¶
func (r *DropProcessor) Config() interface{}
func (*DropProcessor) GetName ¶ added in v1.3.0
func (r *DropProcessor) GetName() string
func (*DropProcessor) Init ¶
func (r *DropProcessor) Init(interceptor *Interceptor)
type FmtProcessor ¶ added in v1.1.0
type FmtProcessor struct {
// contains filtered or unexported fields
}
func NewFmtProcessor ¶ added in v1.1.0
func NewFmtProcessor() *FmtProcessor
func (*FmtProcessor) Config ¶ added in v1.1.0
func (r *FmtProcessor) Config() interface{}
func (*FmtProcessor) GetName ¶ added in v1.3.0
func (r *FmtProcessor) GetName() string
func (*FmtProcessor) Init ¶ added in v1.1.0
func (r *FmtProcessor) Init(interceptor *Interceptor)
type Interceptor ¶
type Interceptor struct { ProcessorGroup *ProcessorGroup MetricContext *eventbus.NormalizeMetricEvent // contains filtered or unexported fields }
Interceptor Deprecated, use transformer instead
func (*Interceptor) BelongTo ¶
func (i *Interceptor) BelongTo() (componentTypes []string)
func (*Interceptor) Category ¶
func (i *Interceptor) Category() api.Category
func (*Interceptor) Config ¶
func (i *Interceptor) Config() interface{}
func (*Interceptor) IgnoreRetry ¶
func (i *Interceptor) IgnoreRetry() bool
func (*Interceptor) Intercept ¶
func (i *Interceptor) Intercept(invoker source.Invoker, invocation source.Invocation) api.Result
func (*Interceptor) Order ¶
func (i *Interceptor) Order() int
func (*Interceptor) Start ¶
func (i *Interceptor) Start() error
func (*Interceptor) Stop ¶
func (i *Interceptor) Stop()
func (*Interceptor) String ¶
func (i *Interceptor) String() string
func (*Interceptor) Type ¶
func (i *Interceptor) Type() api.Type
type JsonDecodeConfig ¶
type JsonDecodeProcessor ¶
type JsonDecodeProcessor struct {
// contains filtered or unexported fields
}
func NewJsonDecodeProcessor ¶
func NewJsonDecodeProcessor() *JsonDecodeProcessor
func (*JsonDecodeProcessor) Config ¶
func (r *JsonDecodeProcessor) Config() interface{}
func (*JsonDecodeProcessor) GetName ¶ added in v1.3.0
func (r *JsonDecodeProcessor) GetName() string
func (*JsonDecodeProcessor) Init ¶
func (r *JsonDecodeProcessor) Init(interceptor *Interceptor)
type MoveConfig ¶
type MoveConfig struct {
Convert []Convert `yaml:"convert,omitempty"`
}
type MoveProcessor ¶
type MoveProcessor struct {
// contains filtered or unexported fields
}
func NewMoveProcessor ¶
func NewMoveProcessor() *MoveProcessor
func (*MoveProcessor) Config ¶
func (r *MoveProcessor) Config() interface{}
func (*MoveProcessor) GetName ¶ added in v1.3.0
func (r *MoveProcessor) GetName() string
func (*MoveProcessor) Init ¶
func (r *MoveProcessor) Init(interceptor *Interceptor)
type Processor ¶
type Processor interface { Init(interceptor *Interceptor) Process(e api.Event) error GetName() string }
type ProcessorConfig ¶
type ProcessorGroup ¶
type ProcessorGroup struct {
// contains filtered or unexported fields
}
func NewProcessorGroup ¶
func NewProcessorGroup(config ProcessorConfig) *ProcessorGroup
func (*ProcessorGroup) InitAll ¶
func (t *ProcessorGroup) InitAll(interceptor *Interceptor)
func (*ProcessorGroup) ProcessAll ¶
func (t *ProcessorGroup) ProcessAll(e api.Event) error
type RegexConfig ¶
type RegexProcessor ¶
type RegexProcessor struct {
// contains filtered or unexported fields
}
func NewRegexProcessor ¶
func NewRegexProcessor() *RegexProcessor
func (*RegexProcessor) Config ¶
func (r *RegexProcessor) Config() interface{}
func (*RegexProcessor) GetName ¶ added in v1.3.0
func (r *RegexProcessor) GetName() string
func (*RegexProcessor) Init ¶
func (r *RegexProcessor) Init(interceptor *Interceptor)
type SplitConfig ¶
type SplitProcessor ¶
type SplitProcessor struct {
// contains filtered or unexported fields
}
func NewSplitProcessor ¶
func NewSplitProcessor() *SplitProcessor
func (*SplitProcessor) Config ¶
func (r *SplitProcessor) Config() interface{}
func (*SplitProcessor) GetName ¶ added in v1.3.0
func (r *SplitProcessor) GetName() string
func (*SplitProcessor) Init ¶
func (r *SplitProcessor) Init(interceptor *Interceptor)
type TimestampConfig ¶
type TimestampConfig struct {
Convert []TimestampConvert `yaml:"convert,omitempty"`
}
type TimestampConvert ¶
type TimestampConvert struct { From string `yaml:"from,omitempty" validate:"required"` FromLayout string `yaml:"fromLayout,omitempty" validate:"required"` ToLayout string `yaml:"toLayout,omitempty" validate:"required"` ToType string `yaml:"toType,omitempty"` // contains filtered or unexported fields }
type TimestampProcessor ¶
type TimestampProcessor struct {
// contains filtered or unexported fields
}
func NewTimestampProcessor ¶
func NewTimestampProcessor() *TimestampProcessor
func (*TimestampProcessor) Config ¶
func (r *TimestampProcessor) Config() interface{}
func (*TimestampProcessor) GetName ¶ added in v1.3.0
func (r *TimestampProcessor) GetName() string
func (*TimestampProcessor) Init ¶
func (r *TimestampProcessor) Init(interceptor *Interceptor)
type UnderRootConfig ¶
type UnderRootConfig struct {
Keys []string `yaml:"keys,omitempty" validate:"required"`
}
type UnderRootProcessor ¶
type UnderRootProcessor struct {
// contains filtered or unexported fields
}
func NewUnderRootProcessor ¶
func NewUnderRootProcessor() *UnderRootProcessor
func (*UnderRootProcessor) Config ¶
func (r *UnderRootProcessor) Config() interface{}
func (*UnderRootProcessor) GetName ¶ added in v1.3.0
func (r *UnderRootProcessor) GetName() string
func (*UnderRootProcessor) Init ¶
func (r *UnderRootProcessor) Init(interceptor *Interceptor)
Click to show internal directories.
Click to hide internal directories.