Documentation ¶
Index ¶
Constants ¶
View Source
const ( RFC3164 = "rfc3164" RFC5424 = "rfc5424" NULTrailer = "NUL" LFTrailer = "LF" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseConfig ¶ added in v0.53.0
type BaseConfig struct { Protocol string `mapstructure:"protocol,omitempty"` Location string `mapstructure:"location,omitempty"` EnableOctetCounting bool `mapstructure:"enable_octet_counting,omitempty"` NonTransparentFramingTrailer *string `mapstructure:"non_transparent_framing_trailer,omitempty"` }
BaseConfig is the detailed configuration of a syslog parser.
type Case ¶
type Case struct { Name string Config *Config Input *entry.Entry Expect *entry.Entry // These signal if a test is valid for UDP and/or TCP protocol ValidForTCP bool ValidForUDP bool }
func CreateCases ¶
type Config ¶ added in v0.53.0
type Config struct { helper.ParserConfig `mapstructure:",squash"` BaseConfig `mapstructure:",squash"` }
Config is the configuration of a syslog parser operator.
func NewConfig ¶ added in v0.53.0
func NewConfig() *Config
NewConfig creates a new syslog parser config with default values
func NewConfigWithID ¶ added in v0.59.0
NewConfigWithID creates a new syslog parser config with default values
type Parser ¶ added in v0.53.0
type Parser struct { helper.ParserOperator // contains filtered or unexported fields }
Parser is an operator that parses syslog.
Click to show internal directories.
Click to hide internal directories.