syslog

package
v0.64.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 8 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"`
	syslog.BaseConfig  `mapstructure:",squash"`
	TCP                *tcp.BaseConfig `mapstructure:"tcp"`
	UDP                *udp.BaseConfig `mapstructure:"udp"`
}

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)

type Input added in v0.53.0

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

Input is an operator that listens for log entries over tcp.

func (*Input) SetOutputs added in v0.53.0

func (t *Input) SetOutputs(operators []operator.Operator) error

SetOutputs will set the outputs of the internal syslog parser.

func (*Input) Start added in v0.53.0

func (t *Input) Start(p operator.Persister) error

Start will start listening for log entries over tcp or udp.

func (*Input) Stop added in v0.53.0

func (t *Input) Stop() error

Stop will stop listening for messages.

Jump to

Keyboard shortcuts

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