parsers

package
v0.0.0-...-701ea4a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL