Documentation ¶
Index ¶
Constants ¶
View Source
const RFC3164 = "rfc3164"
View Source
const RFC5424 = "rfc5424"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Case ¶ added in v0.15.0
type Case struct { Name string Config *SyslogParserConfig InputBody interface{} ExpectedTimestamp time.Time ExpectedBody interface{} ExpectedSeverity entry.Severity ExpectedSeverityText string }
func CreateCases ¶ added in v0.15.0
func CreateCases(basicConfig func() *SyslogParserConfig) ([]Case, error)
type SyslogParser ¶
type SyslogParser struct { helper.ParserOperator // contains filtered or unexported fields }
SyslogParser is an operator that parses syslog.
type SyslogParserConfig ¶
type SyslogParserConfig struct { helper.ParserConfig `mapstructure:",squash" yaml:",inline"` Protocol string `mapstructure:"protocol,omitempty" json:"protocol,omitempty" yaml:"protocol,omitempty"` Location string `mapstructure:"location,omitempty" json:"location,omitempty" yaml:"location,omitempty"` }
SyslogParserConfig is the configuration of a syslog parser operator.
func NewSyslogParserConfig ¶
func NewSyslogParserConfig(operatorID string) *SyslogParserConfig
NewSyslogParserConfig creates a new syslog parser config with default values
func (SyslogParserConfig) Build ¶
func (c SyslogParserConfig) Build(context operator.BuildContext) ([]operator.Operator, error)
Build will build a JSON parser operator.
Click to show internal directories.
Click to hide internal directories.