Documentation ¶
Index ¶
- func CustomFunctions[K any]() map[string]ottl.Factory[K]
- func NewCidrMatchFactory[K any]() ottl.Factory[K]
- func NewDeriveSourceTypeFactory[K any]() ottl.Factory[K]
- func NewExistsFactory[K any]() ottl.Factory[K]
- func NewIpLocationFactory[K any]() ottl.Factory[K]
- func NewIsInFactory[K any]() ottl.Factory[K]
- func NewLookupFactory[K any]() ottl.Factory[K]
- type CidrMatchArguments
- type Config
- type DeriveSourceTypeArguments
- type GrokPattern
- type IpLocationArguments
- type IsInArguments
- type LookupArguments
- type PatternConfig
- type SourceTypeConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCidrMatchFactory ¶
NewCidrMatchFactory Factory function to create a new instance of cidrMatch
func NewExistsFactory ¶
func NewIpLocationFactory ¶
NewIpLocationFactory Create the factory for the iplocation function
func NewIsInFactory ¶
func NewLookupFactory ¶
Types ¶
type CidrMatchArguments ¶
type CidrMatchArguments[K any] struct { Subnet ottl.StringGetter[K] IP ottl.StringGetter[K] }
CidrMatchArguments Define the arguments struct for the cidrMatch function
type Config ¶
type Config struct {
Patterns []PatternConfig `yaml:"patterns"`
}
type DeriveSourceTypeArguments ¶
type DeriveSourceTypeArguments[K any] struct { Target ottl.StringGetter[K] ReceiverType ottl.StringGetter[K] }
type GrokPattern ¶
type IpLocationArguments ¶
type IpLocationArguments[K any] struct { Target ottl.StringGetter[K] // Target is the IP address to locate }
IpLocationArguments holds the target IP
type IsInArguments ¶
type IsInArguments[K any] struct { Target ottl.StringGetter[K] List []string }
type LookupArguments ¶
type LookupArguments[K any] struct { LookupKey ottl.StringGetter[K] Lookup []string // Array in [key1, value1, key2, value2, ...] format DefaultTo string }
type PatternConfig ¶
type PatternConfig struct {
SourceTypes []SourceTypeConfig `yaml:"sourceTypes"`
}
Click to show internal directories.
Click to hide internal directories.