nginx

package
v0.0.0-...-676318b Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package nginx consumes nginx logs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GonxLineParser

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

func (*GonxLineParser) ParseLine

func (g *GonxLineParser) ParseLine(line string) (map[string]interface{}, error)

type Options

type Options struct {
	ConfigFile      string `long:"conf" description:"Path to Nginx config file"`
	LogFormatName   string `long:"format" description:"Log format name to look for in the Nginx config file" default:"combined"`
	TimeFieldName   string `long:"timefield" description:"Name of the field that contains a timestamp"`
	TimeFieldFormat string `long:"time_format" description:"Timestamp format to use (strftime and Golang time.Parse supported)"`

	NumParsers int `hidden:"true" description:"number of nginx parsers to spin up"`
}

type Parser

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

func (*Parser) Init

func (n *Parser) Init(options interface{}) error

func (*Parser) ProcessLines

func (n *Parser) ProcessLines(lines <-chan string, send chan<- event.Event, prefixRegex *parsers.ExtRegexp)

Jump to

Keyboard shortcuts

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