syslog

package
v0.0.0-...-221c3f5 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinBufferSize         = 480
	RecommendedBufferSize = 2048
	MaxBufferSize         = 8192
	UDPBufferSize         = 2048
)

Buffer size constants for syslog message processing.

Variables

This section is empty.

Functions

This section is empty.

Types

type FramingMethod

type FramingMethod int

FramingMethod represents the syslog message framing method.

const (
	FramingNewline FramingMethod = iota
	FramingOctetCounting
)

type SyslogCollector

type SyslogCollector struct {
	// contains filtered or unexported fields
}

SyslogCollector manages all syslog instances. It reads the config file periodically and reconciles port state internally.

func New

func New() *SyslogCollector

New creates a new SyslogCollector.

func (*SyslogCollector) Name

func (sc *SyslogCollector) Name() string

func (*SyslogCollector) Start

func (sc *SyslogCollector) Start(ctx context.Context, queue chan *plugins.Log)

Start begins watching for configuration changes using fsnotify. It performs an initial reconciliation and then reacts to config file changes.

func (*SyslogCollector) Stop

func (sc *SyslogCollector) Stop()

Jump to

Keyboard shortcuts

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