syslogacquisition

package
v1.7.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: MIT Imports: 18 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyslogConfiguration

type SyslogConfiguration struct {
	Proto                             string `yaml:"protocol,omitempty"`
	Port                              int    `yaml:"listen_port,omitempty"`
	Addr                              string `yaml:"listen_addr,omitempty"`
	MaxMessageLen                     int    `yaml:"max_message_len,omitempty"`
	DisableRFCParser                  bool   `yaml:"disable_rfc_parser,omitempty"` // if true, we don't try to be smart and just remove the PRI
	configuration.DataSourceCommonCfg `yaml:",inline"`
}

type SyslogSource

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

func (*SyslogSource) CanRun

func (s *SyslogSource) CanRun() error

func (*SyslogSource) Configure

func (s *SyslogSource) Configure(yamlConfig []byte, logger *log.Entry, metricsLevel metrics.AcquisitionMetricsLevel) error

func (*SyslogSource) ConfigureByDSN

func (s *SyslogSource) ConfigureByDSN(dsn string, labels map[string]string, logger *log.Entry, uuid string) error

func (*SyslogSource) Dump

func (s *SyslogSource) Dump() interface{}

func (*SyslogSource) GetAggregMetrics

func (s *SyslogSource) GetAggregMetrics() []prometheus.Collector

func (*SyslogSource) GetMetrics

func (s *SyslogSource) GetMetrics() []prometheus.Collector

func (*SyslogSource) GetMode

func (s *SyslogSource) GetMode() string

func (*SyslogSource) GetName

func (s *SyslogSource) GetName() string

func (*SyslogSource) GetUuid added in v1.5.0

func (s *SyslogSource) GetUuid() string

func (*SyslogSource) OneShotAcquisition

func (s *SyslogSource) OneShotAcquisition(_ context.Context, _ chan types.Event, _ *tomb.Tomb) error

func (*SyslogSource) StreamingAcquisition

func (s *SyslogSource) StreamingAcquisition(ctx context.Context, out chan types.Event, t *tomb.Tomb) error

func (*SyslogSource) UnmarshalConfig added in v1.5.0

func (s *SyslogSource) UnmarshalConfig(yamlConfig []byte) error

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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