journald

package
v0.69.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.53.0

type Config struct {
	helper.InputConfig `mapstructure:",squash"`

	Directory *string  `mapstructure:"directory,omitempty"`
	Files     []string `mapstructure:"files,omitempty"`
	StartAt   string   `mapstructure:"start_at,omitempty"`
	Units     []string `mapstructure:"units,omitempty"`
	Priority  string   `mapstructure:"priority,omitempty"`
}

Config is the configuration of a journald input operator

func NewConfig added in v0.53.0

func NewConfig() *Config

NewConfig creates a new input config with default values

func NewConfigWithID added in v0.59.0

func NewConfigWithID(operatorID string) *Config

NewConfigWithID creates a new input config with default values

func (Config) Build added in v0.53.0

func (c Config) Build(logger *zap.SugaredLogger) (operator.Operator, error)

Build will build a journald input operator from the supplied configuration

type Input added in v0.53.0

type Input struct {
	helper.InputOperator
	// contains filtered or unexported fields
}

Input is an operator that process logs using journald

func (*Input) Start added in v0.53.0

func (operator *Input) Start(persister operator.Persister) error

Start will start generating log entries.

func (*Input) Stop added in v0.53.0

func (operator *Input) Stop() error

Stop will stop generating logs.

Jump to

Keyboard shortcuts

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