fluent

package
v0.0.0-...-b112479 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NonRootAgentUserGroup = model.AgentUserGroup{
	User:  nonRootUserName,
	UID:   nonRootUID,
	Group: nonRootGroupName,
	GID:   nonRootGID,
}

NonRootAgentUserGroup is a non-root agent user group that should exist by default for Fluent Bit container images that has a writable homedir for on-disk buffers.

Functions

func ContainerConfig

func ContainerConfig(
	masterHost string,
	masterPort int,
	inputs []ConfigSection,
	filters []ConfigSection,
	loggingConfig model.LoggingConfig,
	tlsConfig model.TLSClientConfig,
) ([]string, map[string][]byte)

ContainerConfig computes the command-line arguments and extra files needed to start Fluent Bit with an appropriate configuration. The files are returned as a map from name to content; the contents should be placed into files in the same directory and Fluent Bit should be started in that directory.

Types

type ConfigItem

type ConfigItem struct {
	Name, Value string
}

ConfigItem describes one line in a Fluent Bit config file.

type ConfigSection

type ConfigSection []ConfigItem

ConfigSection describes the contents of one section (input, output, parser, etc.) in a Fluent Bit config file.

func (ConfigSection) String

func (c ConfigSection) String() string

Jump to

Keyboard shortcuts

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