Documentation
¶
Overview ¶
Package fluentbit provides data structures to represent and generate fluentBit configuration.
Package fluentbit provides data structures to represent and generate fluentBit configuration.
Index ¶
- Constants
- type Component
- func LuaFilterComponents(tag, function, src string) []Component
- func MetricsInputComponent() Component
- func MetricsOutputComponent() Component
- func ParseMultilineComponent(tag string, uid string, languageRules []string) []Component
- func ParserComponentBase(TimeFormat string, TimeKey string, Types map[string]string, tag string, ...) (Component, string)
- func ParserFilterComponents(tag string, field string, parserNames []string, preserveKey bool) []Component
- func TranslationComponents(tag, src, dest string, removeSrc bool, translations []struct{ ... }) []Component
- type ModularConfig
- type Service
Constants ¶
const ( MainConfigFileName = "fluent_bit_main.conf" ParserConfigFileName = "fluent_bit_parser.conf" )
const ( ParserNestLuaFunction = `parser_nest` // ParserNestLuaScriptContents is an incomplete Lua funtion that is completed when populated // with the parse_key (i.e. the key being parsed). ParserNestLuaScriptContents = `` /* 352-byte string literal not displayed */ ParserMergeLuaFunction = `parser_merge_record` ParserMergeLuaScriptContents = `` /* 1371-byte string literal not displayed */ )
const MetricsPort = 20202
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct { // Kind is "INPUT", "FILTER", "PARSER", etc. Kind string // Config is a set of key-value configuration pairs Config map[string]string // OrderedConfig is used for configuration pairs where the // key can appear in the output fluent bit config multiple times // and/or the order of the configuration provided is important OrderedConfig [][2]string }
func LuaFilterComponents ¶
LuaFilterComponents returns components that execute the Lua script given in src on records that match tag. TODO(ridwanmsharif): Replace this with in-config script when
fluent/fluent-bit#4634 is supported.
func MetricsInputComponent ¶
func MetricsInputComponent() Component
func MetricsOutputComponent ¶
func MetricsOutputComponent() Component
func ParseMultilineComponent ¶
ParseMultilineComponent constitutes the mulltiline_parser components.
func ParserComponentBase ¶
func ParserComponentBase(TimeFormat string, TimeKey string, Types map[string]string, tag string, uid string) (Component, string)
The parser component is incomplete and needs (at a minimum) the "Format" key to be set.
func ParserFilterComponents ¶
func TranslationComponents ¶
func TranslationComponents(tag, src, dest string, removeSrc bool, translations []struct{ SrcVal, DestVal string }) []Component
TranslationComponents translates SrcVal on key src to DestVal on key dest, if the dest key does not exist. If removeSrc is true, the original key is removed when translated.