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 (*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()
Click to show internal directories.
Click to hide internal directories.