ingest

package
v0.0.0-...-332dcef Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Outcome

type Outcome struct {
	Event    event.Event
	LogEntry store.LogEntry
	ParseErr error
}

Outcome captures the normalized event, the storage record, and any parser error.

func FromRawLine

func FromRawLine(ctx context.Context, line *logsource.LogLine, parser Parser) (Outcome, error)

FromRawLine normalizes a raw log line and keeps the original text as the source of truth. Parser failures are surfaced on the Outcome but still return a fallback event/log entry.

func StoreRawLine

func StoreRawLine(ctx context.Context, dst store.Store, line *logsource.LogLine, parser Parser) (Outcome, error)

StoreRawLine persists the raw line outcome. Parser failures never prevent storage.

type ParseResult

type ParseResult struct {
	Timestamp *time.Time
	Attrs     map[string]string
	Inferred  *event.Inferred
	Labels    map[string]string
}

ParseResult carries parser-derived event data plus optional storage labels.

type Parser

type Parser interface {
	Parse(ctx context.Context, raw string) (*ParseResult, error)
}

Parser extracts structured data from a raw log line.

Jump to

Keyboard shortcuts

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