Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MandatoryExportedFields = []string{"@timestamp", "type"}
fields that should be always exported
Functions ¶
This section is empty.
Types ¶
type DropFields ¶
type DropFields struct {
Fields []string
}
extend FilterRule
func (*DropFields) String ¶
func (f *DropFields) String() string
type DropFieldsConfig ¶
type DropFieldsConfig struct {
Fields []string `config:"fields"`
}
type FilterCondition ¶
type FilterCondition struct { }
type FilterConfig ¶
type FilterConfig struct { DropFields *DropFieldsConfig `config:"drop_fields"` IncludeFields *IncludeFieldsConfig `config:"include_fields"` }
type FilterList ¶
type FilterList struct {
// contains filtered or unexported fields
}
func (*FilterList) Filter ¶
func (filters *FilterList) Filter(event common.MapStr) common.MapStr
Applies a sequence of filtering rules and returns the filtered event
func (*FilterList) Get ¶
func (filters *FilterList) Get(index int) FilterRule
func (*FilterList) Register ¶
func (filters *FilterList) Register(filter FilterRule)
func (*FilterList) String ¶
func (filters *FilterList) String() string
type FilterRule ¶
type IncludeFields ¶
type IncludeFields struct {
Fields []string
}
extends FilterRule
func (*IncludeFields) String ¶
func (f *IncludeFields) String() string
type IncludeFieldsConfig ¶
type IncludeFieldsConfig struct {
Fields []string `config:"fields"`
}
Click to show internal directories.
Click to hide internal directories.