filter

package
v0.0.0-...-31ac6fa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LuaQuote = ast.LuaQuote

Functions

func AllFluentConfig

func AllFluentConfig(tag string, filters map[string]*Filter) ([]fluentbit.Component, string)

AllFluentConfig returns components (if any) and Lua code that sets a Boolean local variable for each filter to indicate if that filter matched.

func FluentBitSpecialFields

func FluentBitSpecialFields() map[string]string

Types

type Filter

type Filter struct {
	// contains filtered or unexported fields
}

func MatchesAny

func MatchesAny(filters []*Filter) *Filter

MatchesAny returns a single Filter that matches if any of the child filters match.

func NewFilter

func NewFilter(f string) (*Filter, error)

func (Filter) OTTLExpression

func (f Filter) OTTLExpression() (ottl.Value, error)

func (Filter) String

func (f Filter) String() string

type Member

type Member struct {
	ast.Target
}

func NewMember

func NewMember(m string) (*Member, error)

func NewMemberLegacy

func NewMemberLegacy(m string) (*Member, error)

NewMemberLegacy attempts to parse m as a filter member. If it fails, it prepends `jsonPayload.` and tries again. This is used by legacy config options that allowed bare body field names.

func (Member) Equals

func (m Member) Equals(m2 Member) bool

Equals checks if two valid members are equal. Invalid members are never equal.

Directories

Path Synopsis
internal
ast

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL