Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MandatoryExportedFields = []string{"@timestamp", "type"}
fields that should be always exported
Functions ¶
func AvailableCondition ¶
func RegisterPlugin ¶
func RegisterPlugin(name string, constructor FilterConstructor) error
Types ¶
type Condition ¶
type Condition struct {
// contains filtered or unexported fields
}
func NewCondition ¶
func NewCondition(config ConditionConfig) (*Condition, error)
type ConditionConfig ¶
type ConditionConfig struct { Equals *ConditionFilter `config:"equals"` Contains *ConditionFilter `config:"contains"` Regexp *ConditionFilter `config:"regexp"` Range *ConditionFilter `config:"range"` }
type ConditionFilter ¶
type ConditionFilter struct {
// contains filtered or unexported fields
}
func (*ConditionFilter) Unpack ¶
func (f *ConditionFilter) Unpack(to interface{}) error
type EqualsValue ¶
func (EqualsValue) String ¶
func (e EqualsValue) String() string
type FilterConstructor ¶
type FilterConstructor func(config common.Config) (FilterRule, error)
type FilterPluginConfig ¶
type FilterRule ¶
type Filters ¶
type Filters struct {
// contains filtered or unexported fields
}
func New ¶
func New(config FilterPluginConfig) (*Filters, error)
type RangeValue ¶
type RangeValue struct {
// contains filtered or unexported fields
}
func (RangeValue) String ¶
func (r RangeValue) String() string
Click to show internal directories.
Click to hide internal directories.