Documentation ¶
Overview ¶
Package parsers supports transforming raw log "lines" into messages with some associated metadata (timestamp, severity, etc.).
This parsing comes after "line parsing" (breaking input into multiple lines) and before further processing and aggregation of log messages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser interface { // Parse parses a line of log input. Parse(message *message.Message) (*message.Message, error) // SupportsPartialLine returns true for sources that can have partial // lines. If SupportsPartialLine is true, Parse can return messages with // IsPartial: true SupportsPartialLine() bool }
Parser parses messages, given as a raw byte sequence, into content and metadata.
Directories ¶
Path | Synopsis |
---|---|
Package dockerfile implements a Parser for the JSON-per-line format found in Docker logfiles.
|
Package dockerfile implements a Parser for the JSON-per-line format found in Docker logfiles. |
Package dockerstream parses the log format output by Docker when streaming via its API.
|
Package dockerstream parses the log format output by Docker when streaming via its API. |
Package encodedtext parses plain text messages that are in encodings other than utf-8.
|
Package encodedtext parses plain text messages that are in encodings other than utf-8. |
Package integrations implements a Parser for integrations logs files.
|
Package integrations implements a Parser for integrations logs files. |
Package noop implements a parser that simply returns its input unchanged.
|
Package noop implements a parser that simply returns its input unchanged. |
Click to show internal directories.
Click to hide internal directories.