Documentation ¶
Index ¶
- Variables
- func NewPlugin() (*pkgplugin.Plugin, error)
- func NewPluginVersion(name string, version string, commitID string) (*pkgplugin.Plugin, error)
- func NewReceiver(tid tenant.Id, plugin string, name string, config interface{}, ...) (receiver.Receiver, error)
- type Facility
- type Receiver
- func (r *Receiver) Config() interface{}
- func (r *Receiver) EventErrorCount() int
- func (r *Receiver) EventErrorVelocity() int
- func (r *Receiver) EventSuccessCount() int
- func (r *Receiver) EventSuccessVelocity() int
- func (r *Receiver) EventTs() int64
- func (r *Receiver) Hash() string
- func (r *Receiver) LogSuccess()
- func (r *Receiver) Name() string
- func (r *Receiver) Plugin() string
- func (r *Receiver) Receive(next receiver.NextFn) error
- func (r *Receiver) StopReceiving(ctx context.Context) error
- func (r *Receiver) Tenant() tenant.Id
- func (r *Receiver) Trigger(e event.Event)
- type ReceiverConfig
- type Severity
- type SyslogMessage
- type SyslogServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Name = "syslog" Version = "v0.0.0" CommitID = "" )
View Source
var DefaultReceiverConfig = ReceiverConfig{
Port: "7531",
}
Functions ¶
func NewPluginVersion ¶
Types ¶
type Facility ¶
type Facility int
const ( KernelMessages Facility = iota << 3 UserLevelMessages MailSystem SystemDaemons SecurityOrAuthorizationMessages MessagesGeneratedInternallyBySyslogd LinePrinterSubsystem NetworkNewsSubsystem UUCPSubsystem ClockDaemon SecurityOrAuthorizationMessages2 FTPDaemon NTPSubsystem LogAudit LogAlert ClockDaemon2 LocalUse0 LocalUse1 LocalUse2 LocalUse3 LocalUse4 LocalUse5 LocalUse6 LocalUse7 )
type Receiver ¶
func (*Receiver) EventErrorCount ¶ added in v1.1.2
func (*Receiver) EventErrorVelocity ¶ added in v1.1.2
func (*Receiver) EventSuccessCount ¶ added in v1.1.2
func (*Receiver) EventSuccessVelocity ¶ added in v1.1.2
func (*Receiver) LogSuccess ¶ added in v1.1.2
func (r *Receiver) LogSuccess()
type ReceiverConfig ¶
type ReceiverConfig struct {
Port string `json:"port"`
}
func (*ReceiverConfig) Validate ¶
func (rc *ReceiverConfig) Validate() error
Validate returns an error upon validation failure
func (*ReceiverConfig) WithDefaults ¶
func (rc *ReceiverConfig) WithDefaults() ReceiverConfig
WithDefaults returns a new config object that has all of the unset (nil) values filled in.
type SyslogMessage ¶
type SyslogServer ¶
type SyslogServer struct { Addr string // contains filtered or unexported fields }
func NewSyslogServer ¶
func NewSyslogServer(addr string) *SyslogServer
Click to show internal directories.
Click to hide internal directories.