journald

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JournaldInput

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

JournaldInput is an operator that process logs using journald

func (*JournaldInput) Start

func (operator *JournaldInput) Start() error

Start will start generating log entries.

func (*JournaldInput) Stop

func (operator *JournaldInput) Stop() error

Stop will stop generating logs.

type JournaldInputConfig

type JournaldInputConfig struct {
	helper.InputConfig `yaml:",inline"`

	Directory    *string         `json:"directory,omitempty"     yaml:"directory,omitempty"`
	Files        []string        `json:"files,omitempty"         yaml:"files,omitempty"`
	StartAt      string          `json:"start_at,omitempty"      yaml:"start_at,omitempty"`
	PollInterval helper.Duration `json:"poll_interval,omitempty" yaml:"poll_interval,omitempty"`
}

JournaldInputConfig is the configuration of a journald input operator

func NewJournaldInputConfig

func NewJournaldInputConfig(operatorID string) *JournaldInputConfig

NewJournaldInputConfig creates a new config for Journald Input

func (JournaldInputConfig) Build

func (c JournaldInputConfig) Build(buildContext operator.BuildContext) ([]operator.Operator, error)

Build will build a journald input operator from the supplied configuration

Jump to

Keyboard shortcuts

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