journald

package module
v0.0.0-...-fa9391f Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 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

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