journald

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: Apache-2.0 Imports: 14 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"`
}

JournaldInputConfig is the configuration of a journald input operator

func NewJournaldInputConfig

func NewJournaldInputConfig(operatorID string) *JournaldInputConfig

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