nginx

package
v0.0.0-...-bd7bb7a Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RemoteAddr    = "remote_addr"
	RemoteUser    = "remote_user"
	Time          = "time_local"
	Request       = "request"
	Status        = "status"
	BodyBytesSent = "body_bytes_sent"
	Referer       = "http_referer"
	UserAgent     = "http_user_agent"
)
View Source
const (
	DefaultFormat string = `$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"`
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLine

type LogLine struct {
	RemoteAddr    string    `json:"remote_addr"`
	RemoteUser    string    `json:"remote_user"`
	Status        int       `json:"status"`
	BodyBytesSent int       `json:"body_bytes_sent"`
	Referer       string    `json:"referer"`
	UserAgent     string    `json:"user_agent"`
	Browser       string    `json:"browser"`
	OS            string    `json:"os"`
	Device        string    `json:"device"`
	Time          time.Time `json:"datetime"`
	Path          string    `json:"path"`
	Method        string    `json:"method"`
	HttpVersion   string    `jon:"http_version"`
	IsBotVerdict  string    `json:"is_bot_verdict"`
}

func NewDefaultFormat

func NewDefaultFormat(logFile io.Reader) []LogLine

Jump to

Keyboard shortcuts

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