Documentation
¶
Index ¶
- type SyslogConfiguration
- type SyslogSource
- func (s *SyslogSource) CanRun() error
- func (s *SyslogSource) Configure(yamlConfig []byte, logger *log.Entry, ...) error
- func (s *SyslogSource) Dump() interface{}
- func (s *SyslogSource) GetAggregMetrics() []prometheus.Collector
- func (s *SyslogSource) GetMetrics() []prometheus.Collector
- func (s *SyslogSource) GetMode() string
- func (s *SyslogSource) GetName() string
- func (s *SyslogSource) GetUuid() string
- func (s *SyslogSource) StreamingAcquisition(ctx context.Context, out chan types.Event, t *tomb.Tomb) error
- func (s *SyslogSource) UnmarshalConfig(yamlConfig []byte) error
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) 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) StreamingAcquisition ¶
func (*SyslogSource) UnmarshalConfig ¶ added in v1.5.0
func (s *SyslogSource) UnmarshalConfig(yamlConfig []byte) error
Click to show internal directories.
Click to hide internal directories.