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 ¶
func CreateCases ¶
func CreateCases(basicConfig func() *SyslogParserConfig) ([]Case, error)
type SyslogBaseConfig ¶
type SyslogBaseConfig struct { Protocol string `mapstructure:"protocol,omitempty" json:"protocol,omitempty" yaml:"protocol,omitempty"` Location string `mapstructure:"location,omitempty" json:"location,omitempty" yaml:"location,omitempty"` }
SyslogBaseConfig is the detailed configuration of a syslog parser.
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"` SyslogBaseConfig `mapstructure:",squash" yaml:",inline"` }
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(logger *zap.SugaredLogger) (operator.Operator, error)
Build will build a JSON parser operator.
Click to show internal directories.
Click to hide internal directories.