syslog

package
v0.99.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OctetSplitFuncBuilder added in v0.86.0

func OctetSplitFuncBuilder(_ encoding.Encoding) (bufio.SplitFunc, error)

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 (i *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 (i *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 (i *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