logformat

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

Parser is used to parse the mapreduce information from the server log files.

func NewParser

func NewParser(logFormatName string) (*Parser, error)

NewParser returns a new log parser.

func (*Parser) MakeFields

func (p *Parser) MakeFields(maprLine string) (fields map[string]string, err error)

MakeFields is for returning the fields from a given log line.

func (*Parser) MakeFieldsDEFAULT

func (p *Parser) MakeFieldsDEFAULT(maprLine string) (map[string]string, error)

MakeFieldsDEFAULT is the default log file mapreduce parser.

Jump to

Keyboard shortcuts

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