logfile

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: AGPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	config.InternalConfig

	Targets         []string        `toml:"targets"`
	InitialPosition string          `toml:"initial_position"`
	FilterInclude   []string        `toml:"filter_include"`
	FilterExclude   []string        `toml:"filter_exclude"`
	MaxLines        int             `toml:"max_lines"`
	MaxReadBytes    config.Size     `toml:"max_read_bytes"`
	MaxLineLength   int             `toml:"max_line_length"`
	MaxTargets      int             `toml:"max_targets"`
	ContextBefore   int             `toml:"context_before"`
	ContextAfter    int             `toml:"context_after"`
	Encoding        string          `toml:"encoding"`
	StateFile       string          `toml:"state_file"`
	GatherTimeout   config.Duration `toml:"gather_timeout"`
	Match           MatchCheck      `toml:"match"`
	// contains filtered or unexported fields
}

func (*Instance) Drop

func (ins *Instance) Drop()

func (*Instance) Gather

func (ins *Instance) Gather(q *safe.Queue[*types.Event])

func (*Instance) Init

func (ins *Instance) Init() error

type LogfilePlugin

type LogfilePlugin struct {
	config.InternalConfig
	Instances []*Instance `toml:"instances"`
}

func (*LogfilePlugin) GetInstances

func (p *LogfilePlugin) GetInstances() []plugins.Instance

type MatchCheck

type MatchCheck struct {
	Severity string `toml:"severity"`
}

Jump to

Keyboard shortcuts

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