Documentation ¶
Index ¶
- Variables
- func DecodingError(err error) error
- func ErrorUnknownFormat(format string) error
- func FromGelfMessage(gelfm *gelf.Message) (msg *model.SyslogMessage)
- func FullFromGelfMessage(gelfm *gelf.Message) (msg *model.FullMessage)
- func InfluxDecodingError(err error) error
- func InvalidCharsetError(err error) error
- func InvalidTopicError(topic string) error
- func NotEnoughPartsError(nb int) error
- func RFC5424DecodingError(err error) error
- func UnmarshalJsonError(err error) error
- func W3CDecoder(fieldNames string) func([]byte) ([]*model.SyslogMessage, error)
- func W3CDecodingError(err error) error
- type BaseParser
- type Parser
- type ParsersEnv
Constants ¶
This section is empty.
Variables ¶
View Source
var EmptyMessageError = DecodingError(eerrors.New("Empty message"))
View Source
var ErrInvalidPriority = DecodingError(eerrors.New("Invalid priority field"))
View Source
var ErrInvalidSD = DecodingError(eerrors.New("Invalid structured data"))
View Source
var ErrInvalidTimestamp = DecodingError(eerrors.New("TimeReported and TimeGenerated should be formatted in RFC3339 format"))
Functions ¶
func DecodingError ¶
func ErrorUnknownFormat ¶
func FromGelfMessage ¶
func FromGelfMessage(gelfm *gelf.Message) (msg *model.SyslogMessage)
func FullFromGelfMessage ¶
func FullFromGelfMessage(gelfm *gelf.Message) (msg *model.FullMessage)
func InfluxDecodingError ¶
func InvalidCharsetError ¶
func InvalidTopicError ¶
func NotEnoughPartsError ¶
func RFC5424DecodingError ¶
func UnmarshalJsonError ¶
func W3CDecoder ¶
func W3CDecoder(fieldNames string) func([]byte) ([]*model.SyslogMessage, error)
W3CDecoder makes a Extended Log Format decoder from given field names
func W3CDecodingError ¶
Types ¶
type BaseParser ¶
type BaseParser func([]byte) ([]*model.SyslogMessage, error)
type ParsersEnv ¶
ParsersEnv encapsulates JS and Golang parsers.
func NewParsersEnv ¶
func NewParsersEnv(config []conf.ParserConfig, logger log15.Logger) *ParsersEnv
func (*ParsersEnv) Parse ¶
func (e *ParsersEnv) Parse(c *conf.DecoderBaseConfig, m []byte) ([]*model.SyslogMessage, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.