syslog

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyslogInput

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

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

func (*SyslogInput) SetOutputs

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

SetOutputs will set the outputs of the internal syslog parser.

func (*SyslogInput) Start

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

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

func (*SyslogInput) Stop

func (t *SyslogInput) Stop() error

Stop will stop listening for messages.

type SyslogInputConfig

type SyslogInputConfig struct {
	helper.InputConfig      `yaml:",inline"`
	syslog.SyslogBaseConfig `yaml:",inline"`
	Tcp                     *tcp.TCPBaseConfig `json:"tcp" yaml:"tcp"`
	Udp                     *udp.UDPBaseConfig `json:"udp" yaml:"udp"`
}

func NewSyslogInputConfig

func NewSyslogInputConfig(operatorID string) *SyslogInputConfig

func (SyslogInputConfig) Build

Jump to

Keyboard shortcuts

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