logparser

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FieldAliases = map[string][]string{
	"timestamp": {"timestamp", "time", "ts"},
	"level":     {"level", "lvl", "severity"},
	"message":   {"message", "msg", "text"},
}

FieldAliases defines field name aliases for better flexibility

Functions

func ProcessLog

func ProcessLog(scanner *bufio.Scanner, format string, maxDepth int, hideMissing bool, filters map[string]string, excludes map[string]string, levelMappings map[string]string, autoConvertLevel bool, timeFormat string)

ProcessLog parses JSON logs and outputs formatted results

Types

This section is empty.

Jump to

Keyboard shortcuts

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