Documentation ¶
Index ¶
- Variables
- func BuildFilter(filterType string, config map[interface{}]interface{}) topology.Filter
- func Register(filterType string, bf BuildFilterFunc)
- type AddFilter
- type ArrayFloatConverter
- type ArrayIntConverter
- type BoolConverter
- type BuildFilterFunc
- type ConvertFilter
- type Converter
- type ConveterAndRender
- type DateFilter
- type DateParser
- type FiltersFilter
- type FloatConverter
- type FormatParser
- type Grok
- type GrokFilter
- type GsubFilter
- type IPIPFilter
- type IntConverter
- type JSONFilter
- type KVFilter
- type LinkMetricFilter
- type LinkStatsMetricFilter
- type LowercaseFilter
- type RemoveFilter
- type RenameFilter
- type ReplaceFilter
- type SplitFilter
- type StringConverter
- type TranslateFilter
- type UIntConverter
- type URLDecodeFilter
- type UnixMSParser
- type UnixParser
- type UppercaseFilter
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConvertUnknownFormat error = errors.New("unknown format")
View Source
var MustStringTypeError = errors.New("timestamp field must be string")
Functions ¶
func BuildFilter ¶
BuildFilter builds Filter from filter type and config. it firstly tries built-in filter, and then try 3rd party plugin
func Register ¶
func Register(filterType string, bf BuildFilterFunc)
Register is used by input plugins to register themselves
Types ¶
type ArrayFloatConverter ¶
type ArrayFloatConverter struct{}
type ArrayIntConverter ¶
type ArrayIntConverter struct{}
type BoolConverter ¶
type BoolConverter struct{}
type BuildFilterFunc ¶
type ConvertFilter ¶
type ConvertFilter struct {
// contains filtered or unexported fields
}
type ConveterAndRender ¶
type ConveterAndRender struct {
// contains filtered or unexported fields
}
type DateFilter ¶
type DateFilter struct {
// contains filtered or unexported fields
}
type DateParser ¶
type FiltersFilter ¶
type FiltersFilter struct {
// contains filtered or unexported fields
}
func (*FiltersFilter) Filter ¶
func (f *FiltersFilter) Filter(event map[string]interface{}) (map[string]interface{}, bool)
func (*FiltersFilter) SetBelongTo ¶
func (f *FiltersFilter) SetBelongTo(next topology.Processor)
type FloatConverter ¶
type FloatConverter struct{}
type FormatParser ¶
type FormatParser struct {
// contains filtered or unexported fields
}
type GrokFilter ¶
type GrokFilter struct {
// contains filtered or unexported fields
}
type GsubFilter ¶ added in v1.8.2
type GsubFilter struct {
// contains filtered or unexported fields
}
GsubFilter implements topology.Filter.
type IPIPFilter ¶
type IPIPFilter struct {
// contains filtered or unexported fields
}
type IntConverter ¶
type IntConverter struct{}
type JSONFilter ¶ added in v1.9.13
type JSONFilter struct {
// contains filtered or unexported fields
}
JSONFilter will parse json string in `field` and put the result into `target` field
type LinkMetricFilter ¶
type LinkMetricFilter struct {
// contains filtered or unexported fields
}
func (*LinkMetricFilter) Filter ¶
func (f *LinkMetricFilter) Filter(event map[string]interface{}) (map[string]interface{}, bool)
func (*LinkMetricFilter) SetBelongTo ¶
func (f *LinkMetricFilter) SetBelongTo(next topology.Processor)
type LinkStatsMetricFilter ¶
type LinkStatsMetricFilter struct {
// contains filtered or unexported fields
}
func (*LinkStatsMetricFilter) Filter ¶
func (f *LinkStatsMetricFilter) Filter(event map[string]interface{}) (map[string]interface{}, bool)
func (*LinkStatsMetricFilter) SetBelongTo ¶
func (f *LinkStatsMetricFilter) SetBelongTo(next topology.Processor)
type LowercaseFilter ¶
type LowercaseFilter struct {
// contains filtered or unexported fields
}
type RemoveFilter ¶
type RemoveFilter struct {
// contains filtered or unexported fields
}
type RenameFilter ¶
type RenameFilter struct {
// contains filtered or unexported fields
}
type ReplaceFilter ¶
type ReplaceFilter struct {
// contains filtered or unexported fields
}
type SplitFilter ¶
type SplitFilter struct {
// contains filtered or unexported fields
}
type StringConverter ¶
type StringConverter struct{}
type TranslateFilter ¶
type TranslateFilter struct {
// contains filtered or unexported fields
}
type UIntConverter ¶ added in v1.7.14
type UIntConverter struct{}
type URLDecodeFilter ¶
type URLDecodeFilter struct {
// contains filtered or unexported fields
}
type UnixMSParser ¶
type UnixMSParser struct{}
type UnixParser ¶
type UnixParser struct{}
type UppercaseFilter ¶
type UppercaseFilter struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.